Commit fae9ac561 for llama.cpp
commit fae9ac561f7c20b320d89103be67372381485653
Author: Sreeram <sreeram.sivasubramony@amd.com>
Date: Tue Oct 27 01:24:00 2026 -0700
ci : use ccache depend mode for ROCm release builds (#31231)
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