Skip to content

Scope -Xarch_device -O3 to Avoid RTC Cache Errors on Windows#619

Closed
af-ayala wants to merge 2 commits into
ROCm:developfrom
af-ayala:windowsRTC_cache
Closed

Scope -Xarch_device -O3 to Avoid RTC Cache Errors on Windows#619
af-ayala wants to merge 2 commits into
ROCm:developfrom
af-ayala:windowsRTC_cache

Conversation

@af-ayala
Copy link
Copy Markdown
Contributor

@af-ayala af-ayala commented Jul 5, 2025

#solves 1239
Adding -Xarch_device -O3 causes the RTC-compiled kernel binaries to differ, leading to hash or ABI mismatches on Windows. These mismatches currently break kernel reuse from cache on Windows builds during repeated runs. For example:

rocfft-test.exe --gtest_filter=*rocfft_UnitTest.rtc_cache* --gtest_repeat=100

This change limits the flag to non-Windows OSes to prevent RTC cache errors during testing.

@evetsso
Copy link
Copy Markdown
Contributor

evetsso commented Jul 7, 2025

Can you explain in more detail what's happening here? A side effect of this change should be that the callback tests will break in a debug build, as mentioned by the comment above your change.

@af-ayala af-ayala marked this pull request as draft July 10, 2025 19:18
@ammallya
Copy link
Copy Markdown
Contributor

Imported to ROCm/rocm-libraries

@ammallya ammallya closed this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants