Repository navigation
Conversation
✅ All Policy Checks Passed
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
ScottTodd
marked this pull request as ready for review
November 4, 2026 22:09
1 task done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We were setting:
CMAKE_C_COMPILER_LAUNCHER=sccache CMAKE_CXX_COMPILER_LAUNCHER=sccache # Linux-only HIP_CLANG_LAUNCHER=sccacheWe can now just set these options for both platforms:
This will improve build performance (especially on Windows) and allows us to remove layers of indirection in
build_tools/setup_sccache_rocm.py.See also:
Technical Details
The remote cache server we use is still configured directly in workflow .yml files such as
TheRock/.github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml
Lines 253 to 265 in 4662763
This PR deletes
build_tools/setup_sccache_rocm.pyas it reduced down to 3 lines of code, but we could add it back or merge withbuild_tools/github_actions/compute_pytorch_cache_type.pyin the style ofbuild_tools/setup_ccache.py- having the script write the configuration (server to use, other settings).Test Plan
Local testing on Windows
Expand for repro commands
CMAKE_HIP_COMPILER_LAUNCHERCMAKE_HIP_COMPILER_LAUNCHERCI testing on Linux and Windows
I re-ran CI jobs to check cache behavior:
https://github.com/ROCm/TheRock/actions/runs/41889393295/attempts/1?pr=9744 cold cache.
https://github.com/ROCm/TheRock/actions/runs/41889393295/attempts/2?pr=9744 warm cache
Submission Checklist