Skip to content

Commit 8ff69ec

Browse files
authored
Merge pull request #45 from ROCm/rogarcia.gfx11-ccache
ci(gfx11): cache HIP builds with ggml-org/ccache-action
2 parents dbf933f + 8bec806 commit 8ff69ec

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build-gfx11-rocm.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,19 @@ jobs:
210210
echo "Current llama.cpp commit:"
211211
git log --oneline -1
212212
213+
- name: Setup ccache
214+
# Auto-consumed by the build: llama.cpp's CMake sets ccache as the compile
215+
# launcher when GGML_CCACHE is ON (default) and ccache is on PATH, so no
216+
# cmake flags are needed. Persists across runs via actions/cache. Nightly
217+
# ROCm bumps change the compiler and will miss (expected); incremental
218+
# commits on the same ROCm hit. Only write the cache from pushes to gfx11
219+
# so PRs read but don't thrash the shared store.
220+
uses: ggml-org/ccache-action@v1.2.21
221+
with:
222+
key: gfx11-rocm-multiarch
223+
evict-old-files: 7d
224+
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/gfx11' }}
225+
213226
- name: Build Llama.cpp + ROCm
214227
run: |
215228
gpu_targets="${{ env.GPU_TARGETS }}"

0 commit comments

Comments
 (0)