From 3605515965cc751d50b43c36385a2b240928131b Mon Sep 17 00:00:00 2001 From: Sreeram Date: Sat, 24 Oct 2026 12:47:40 -0700 Subject: [PATCH] Use ccache depend mode for ROCm builds --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c530563ad7fb..59f18ef6b211 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,6 +102,9 @@ jobs: # builds hit. ccache --set-config=compiler_check=content ccache --set-config=sloppiness=time_macros,include_file_mtime,include_file_ctime + # Only reuse a cached result if the source file and every file it includes are unchanged. + # ccache's fallback check cannot see GPU-only code on ROCm 10.1, so it could reuse a result with old GPU code, which is not we want. + ccache --set-config=depend_mode=true - name: Dependencies id: depends @@ -859,6 +862,9 @@ jobs: if ($LASTEXITCODE -ne 0) { throw "ccache --set-config failed with exit code $LASTEXITCODE" } ccache --set-config=sloppiness=time_macros,include_file_mtime,include_file_ctime if ($LASTEXITCODE -ne 0) { throw "ccache --set-config failed with exit code $LASTEXITCODE" } + # Same as ubuntu-24-rocm: never reuse a result with old GPU code. + ccache --set-config=depend_mode=true + if ($LASTEXITCODE -ne 0) { throw "ccache --set-config failed with exit code $LASTEXITCODE" } - name: Install ROCm with Wheels run: |