CI: let a cold CUDA profile warm its ccache from a sibling profile - #83
Draft
danielhanchen wants to merge 1 commit into
Draft
CI: let a cold CUDA profile warm its ccache from a sibling profile#83danielhanchen wants to merge 1 commit into
danielhanchen wants to merge 1 commit into
Conversation
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.
Adds a second, broader
restore-keysentry to the CUDA and CUDA-Windows ccache steps, so a profile with no cache of its own falls back to a sibling of the same CUDA line and OS instead of building cold.Why it should work
Configurepasses exactly one per-profile flag,-DCMAKE_CUDA_ARCHITECTURES="$archs". That affects.cucompilation only, so every plain C++ translation unit -- the large majority of the 887 -- has a byte-identical command line acrosscuda12-legacy/older/newer/portable. A sibling cache should therefore hit on all of them.Scope
It only engages when the primary key misses entirely, so it cannot regress the normal path: with a cache of its own, the profile still restores its own. The cases it helps are a new profile, and a profile whose last save was lost.
Honesty about the evidence
Unlike the changes in #81 and #82, this one is not measured. It is a reasoned inference from the cmake flags, not an experiment, which is why it is separate and draft.
For contrast, here is what measurement produced on the other hypotheses, run locally against 513 real translation units:
tarextraction breaks ccache direct modeinclude_file_mtime,include_file_ctimeSo the real cause of the 6.2% was the 500 MB cap, already fixed in 4a03725. This PR is a smaller, separate improvement to cold-start behaviour.
Test plan
Both workflow files parse, and
restore-keysresolves to exactly two entries per step.