Skip to content

Commit ba4b5cf

Browse files
sbryngelsonclaude
andcommitted
Isolate build temp dirs to prevent Cray compiler conflicts
Set per-build TMPDIR so concurrent Cray Fortran compilations on the login node don't share temp files, which caused optcg segfaults on m_phase_change.fpp.f90 during frontier gpu acc builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b714050 commit ba4b5cf

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/scripts/run_frontier_all_benchmarks.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ for i in "${!configs[@]}"; do
8787
echo " Starting: $version $cluster $device $interface"
8888
(
8989
cd "$dir"
90+
# Give each build its own temp dir to avoid Cray compiler conflicts
91+
export TMPDIR="$(pwd)/.tmp-build"
92+
mkdir -p "$TMPDIR"
9093
bash .github/workflows/${cluster}/build.sh "$device" "$interface" bench
9194
) > "$log" 2>&1 &
9295
build_pids[$i]=$!

.github/scripts/run_frontier_all_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ for i in "${!configs[@]}"; do
9292
echo " Starting: $cluster $device $interface"
9393
(
9494
cd "$dir"
95+
# Give each build its own temp dir to avoid Cray compiler conflicts
96+
export TMPDIR="$(pwd)/.tmp-build"
97+
mkdir -p "$TMPDIR"
9598
bash .github/workflows/${cluster}/build.sh "$device" "$interface"
9699
) > "$log" 2>&1 &
97100
build_pids[$i]=$!

0 commit comments

Comments
 (0)