Skip to content

Commit d5b0b36

Browse files
sbryngelsonclaude
andcommitted
Fix rebuild-cache: clean stale GPU build before gcov build
The self-hosted Phoenix runner retains build artifacts across jobs. A prior --gpu mp build leaves CMake flags (e.g. -foffload=amdgcn-amdhsa) that cause gfortran to fail when building with --gcov. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7e18115 commit d5b0b36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/phoenix/rebuild-cache.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ set -e
66
NJOBS="${SLURM_CPUS_ON_NODE:-24}"
77
if [ "$NJOBS" -gt 64 ]; then NJOBS=64; fi
88

9+
# Clean stale build artifacts: the self-hosted runner may have a cached
10+
# GPU build (e.g. --gpu mp) whose CMake flags are incompatible with gcov.
11+
./mfc.sh clean
12+
913
# Build MFC with gcov coverage instrumentation (CPU-only, gfortran).
1014
# -j 8 for compilation (memory-heavy, more cores doesn't help much).
1115
./mfc.sh build --gcov -j 8

0 commit comments

Comments
 (0)