Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cddd605
Merge benchmarks into test.yml for parallel CI execution
sbryngelson Feb 9, 2026
5116e50
Remove cancel-on-bench-failure to avoid killing tests on bench flakes
sbryngelson Feb 9, 2026
5b75291
Consolidate Frontier SLURM jobs into multi-node allocations
sbryngelson Feb 9, 2026
8c14b05
Fix cp-into-self error in consolidated Frontier test script
sbryngelson Feb 9, 2026
50e43f5
Fix review issues: rocm-smi gating, subshell env, job ID parsing
sbryngelson Feb 9, 2026
eebd753
Move concurrency from workflow-level to per-job
sbryngelson Feb 9, 2026
8d7f492
Parallelize Frontier builds on login node
sbryngelson Feb 10, 2026
d852af3
Restore workflow-level concurrency for full run cancellation
sbryngelson Feb 10, 2026
1627311
Add build progress heartbeat and collapsible GHA log groups
sbryngelson Feb 10, 2026
d98e894
Fix heartbeat kill guard and hardcoded node count in log message
sbryngelson Feb 10, 2026
b5f6c04
Clean up stale dirs before creating source copies
sbryngelson Feb 10, 2026
6e173e4
Switch Phoenix GPU jobs to H200 nodes for faster scheduling
sbryngelson Feb 10, 2026
553ff35
Harden Frontier CI orchestration scripts
sbryngelson Feb 10, 2026
e5ce527
Limit parallel builds to 2 concurrent on login node
sbryngelson Feb 11, 2026
de1b6d5
Set SETUPTOOLS_SCM_PRETEND_VERSION for hardlink source copies
sbryngelson Feb 11, 2026
1347a54
Merge branch 'master' into readme
sbryngelson Feb 11, 2026
0a5a0f6
Add build heartbeat during throttled build phase
sbryngelson Feb 12, 2026
2575eb7
Merge branch 'master' into readme
sbryngelson Feb 12, 2026
e2cb418
Fix bash segfault in monitor_slurm_job.sh from fractional read timeout
sbryngelson Feb 12, 2026
580d1f2
Use real copies instead of hardlinks and increase parallel builds to 3
sbryngelson Feb 12, 2026
9d509fb
Remove NODE_OPTIONS from CI workflow
sbryngelson Feb 12, 2026
fe79a51
Add workspace pre-clean to avoid stale NFS handles on self-hosted run…
sbryngelson Feb 12, 2026
0006d6f
Isolate build temp dirs to prevent Cray compiler conflicts
sbryngelson Feb 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/file-filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ yml: &yml
- '.github/workflows/phoenix/**'
- '.github/workflows/frontier/**'
- '.github/workflows/frontier_amd/**'
- '.github/workflows/bench.yml'
- '.github/workflows/test.yml'
- '.github/workflows/formatting.yml'

Expand Down
41 changes: 41 additions & 0 deletions .github/scripts/frontier_bench_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
# Run a single benchmark on a Frontier compute node (build already done on login node).
# Usage: frontier_bench_config.sh <cluster> <device> <interface>
# Runs inside a SLURM allocation on an ssh'd compute node.

set -e
set -x

cluster=$1; device=$2; interface=$3

flag="f"; [ "$cluster" = "frontier_amd" ] && flag="famd"
mode="g"; [ "$device" = "cpu" ] && mode="c"

. ./mfc.sh load -c "$flag" -m "$mode"

# Benchmark
job_slug="bench-${device}-${interface}"
n_ranks=12
device_opts=""
if [ "$device" = "gpu" ]; then
gpus=$(rocm-smi --showid | awk '{print $1}' | grep -Eo '[0-9]+' | uniq | tr '\n' ' ')
n_ranks=$(echo "$gpus" | wc -w)
if [ "$n_ranks" -lt 1 ] || [ "$n_ranks" -gt 16 ]; then
echo "ERROR: Unexpected GPU count ($n_ranks). Expected 1-16 for Frontier MI250X."
echo "rocm-smi output:"
rocm-smi --showid
exit 1
fi
echo "Detected $n_ranks GPUs: $gpus"
gpu_ids=$(echo "$gpus" | tr ' ' '\n' | tr '\n' ' ' | sed 's/ $//')
device_opts="--gpu"
[ "$interface" = "acc" ] && device_opts+=" acc"
[ "$interface" = "omp" ] && device_opts+=" mp"
device_opts+=" -g $gpu_ids"
fi

if [ "$device" = "gpu" ]; then
./mfc.sh bench --mem 12 -j $n_ranks -o "$job_slug.yaml" -- -c "$cluster" $device_opts -n $n_ranks
else
./mfc.sh bench --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c "$cluster" $device_opts -n $n_ranks
fi
35 changes: 35 additions & 0 deletions .github/scripts/frontier_bench_post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
# Post-process all Frontier benchmark results after the SLURM job completes.
# Runs bench_diff for each config, comparing master vs PR YAML outputs.

set -euo pipefail

# Benchmark configs: cluster device interface flag
bench_configs=(
"frontier:gpu:acc:f"
"frontier:gpu:omp:f"
"frontier_amd:gpu:omp:famd"
)

for cfg in "${bench_configs[@]}"; do
IFS=':' read -r cluster device interface flag <<< "$cfg"
pr_yaml="pr-${cluster}-${device}-${interface}/bench-${device}-${interface}.yaml"
master_yaml="master-${cluster}-${device}-${interface}/bench-${device}-${interface}.yaml"

echo "=========================================="
echo "bench_diff: $cluster $device $interface"
echo " PR: $pr_yaml"
echo " Master: $master_yaml"
echo "=========================================="

if [ ! -f "$pr_yaml" ]; then
echo "ERROR: PR YAML not found: $pr_yaml"
exit 1
fi
if [ ! -f "$master_yaml" ]; then
echo "ERROR: Master YAML not found: $master_yaml"
exit 1
fi

(cd pr && . ./mfc.sh load -c "$flag" -m g && ./mfc.sh bench_diff "../$master_yaml" "../$pr_yaml")
done
41 changes: 41 additions & 0 deletions .github/scripts/frontier_test_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
# Run a single test on a Frontier compute node (build already done on login node).
# Usage: frontier_test_config.sh <cluster> <device> <interface>
# Runs inside a SLURM allocation on an ssh'd compute node.

set -e
set -x

cluster=$1; device=$2; interface=$3

flag="f"; [ "$cluster" = "frontier_amd" ] && flag="famd"
mode="g"; [ "$device" = "cpu" ] && mode="c"

. ./mfc.sh load -c "$flag" -m "$mode"

# Device options
device_opts=""
if [ "$device" = "gpu" ]; then
device_opts="--gpu"
[ "$interface" = "acc" ] && device_opts+=" acc"
[ "$interface" = "omp" ] && device_opts+=" mp"
fi

rdma=""
[ "$cluster" = "frontier" ] && [ "$device" = "gpu" ] && rdma="--rdma-mpi"

# Test
if [ "$device" = "gpu" ]; then
gpus=$(rocm-smi --showid | awk '{print $1}' | grep -Eo '[0-9]+' | uniq | tr '\n' ' ')
ngpus=$(echo "$gpus" | wc -w)
if [ "$ngpus" -lt 1 ] || [ "$ngpus" -gt 16 ]; then
echo "ERROR: Unexpected GPU count ($ngpus). Expected 1-16 for Frontier MI250X."
echo "rocm-smi output:"
rocm-smi --showid
exit 1
fi
echo "Detected $ngpus GPUs: $gpus"
./mfc.sh test -v -a $rdma --max-attempts 3 -j $ngpus $device_opts -- -c "$cluster"
else
./mfc.sh test -v -a --max-attempts 3 -j 32 --no-gpu -- -c "$cluster"
fi
4 changes: 2 additions & 2 deletions .github/scripts/monitor_slurm_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ while true; do
# Try to read from tail output (non-blocking via timeout)
# Read multiple lines if available to avoid falling behind
lines_read=0
while IFS= read -r -t 0.1 line <&3 2>/dev/null; do
while IFS= read -r -t 1 line <&3 2>/dev/null; do
echo "$line"
lines_read=$((lines_read + 1))
last_heartbeat=$(date +%s)
Expand Down Expand Up @@ -115,7 +115,7 @@ done
# Drain any remaining output from tail after job completes
echo "Draining remaining output..."
drain_count=0
while IFS= read -r -t 0.5 line <&3 2>/dev/null; do
while IFS= read -r -t 1 line <&3 2>/dev/null; do
echo "$line"
drain_count=$((drain_count + 1))
# Safety limit to avoid infinite loop
Expand Down
Loading
Loading