From fae9ac561f7c20b320d89103be67372381485653 Mon Sep 17 00:00:00 2001 From: Sreeram Date: Tue, 27 Oct 2026 01:24:00 -0700 Subject: [PATCH] ci : use ccache depend mode for ROCm release builds (#31231) --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c43c609ad..a9ec918fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -968,6 +968,11 @@ jobs: evict-old-files: 1d max-size: "1G" + - name: Tune ccache for ROCm + run: | + # since ROCm 10.1, clang -E output has no GPU code, so the preprocessor fallback can reuse objects with old GPU code + ccache --set-config=depend_mode=true + # - name: Cache ROCm Installation # id: cache-rocm # uses: actions/cache@v5 @@ -1545,6 +1550,8 @@ jobs: # builds hit. ccache --set-config=compiler_check=content ccache --set-config=sloppiness=time_macros,include_file_mtime,include_file_ctime + # since ROCm 10.1, clang -E output has no GPU code, so the preprocessor fallback can reuse objects with old GPU code + ccache --set-config=depend_mode=true - name: Dependencies id: depends