Files
llama.cpp/.github/workflows
Mario LimoncielloandClaude f564e1feb6 ci: wire ccache to HIP compiler for ROCm builds
HIP compilation bypassed ccache because CMake's RULE_LAUNCH_COMPILE
(set by ggml) only applies to C/CXX by default, not the HIP language.
All device code compilation went uncached, causing 50-99% miss rates
and 2-3 hour builds instead of ~15 min.

Set CMAKE_HIP_COMPILER_LAUNCHER=ccache explicitly on both ubuntu-22-rocm
and windows-rocm jobs so HIP compilation goes through ccache.

Evidence from job 95717810047 (Ubuntu 7.13):
- 50% hit rate, 682 misses, 137 min build
- Cache size 0.60/2.00 GB, no cleanups (prior max-size fix working)
- Zero "ccache" prefixes on "Building HIP object" lines

Confirmed on Windows: job 95259413610 (7.13) had 0.5% hit rate and
193 min build, while 95259413584 (7.14) had 99.6% hit rate and 9 min
build when ccache worked by chance.

Expected: >95% hit rate, ~15 min ROCm builds on warm cache.

Co-Authored-By: Claude <[email protected]>
2026-08-18 12:59:16 -05:00
..