Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
47 changes: 47 additions & 0 deletions scripts/benchmarking/run_full_benchmark-mpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env bash

## Run all benchmark kernels for GPU, non-lambda variants only
## on 4 MPI ranks and dump the results in the specified directory.

flux alloc -xN1 -t 20 bash -c '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a slurm version?


OUTDIR=RPBenchmarkTestMPI

# Collection of problem size factors between 0.5 and 6
FACTORS=(0.5 1.0 2.0 3.0 4.0 5.0 6.0)

# List of kernels to run
KERNELS=("CONVECTION3DPA"
"DEL_DOT_VEC_2D"
"DIFFUSION3DPA"
"EDGE3D"
"ENERGY"
"INTSC_HEXHEX"
"INTSC_HEXRECT"
"LTIMES"
"MASS3DEA"
"MASSVEC3DPA"
"MATVEC_3D_STENCIL"
"NODAL_ACCUMULATION_3D"
"VOL3D"
"MULTI_REDUCE"
"REDUCE_STRUCT"
"HALO_EXCHANGE_FUSED")

for KERNEL_NAME in "${KERNELS[@]}"; do
echo "Running kernel: $KERNEL_NAME"

for factor in "${FACTORS[@]}"; do
echo " Running with sizefact = $factor"
flux run -xN1 -n4 ./bin/raja-perf.exe \
-k "$KERNEL_NAME" \
--npasses 1 \
--npasses-combiners Average Minimum Maximum \
--outdir ${OUTDIR} \
--outfile "${KERNEL_NAME}_factor_${factor}" \
--sizefact "$factor" \
--warmup-perfrun-same \
-ev Seq Lambda
Copy link
Member

@MrBurmark MrBurmark Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to compare to an mpi everywhere (sequential, rank per core) version?

done
done
'
25 changes: 25 additions & 0 deletions scripts/benchmarking/run_kernels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

#Clean directory
rm -rf *.csv *.txt

# Collection of float factors between 0.5 and 10
FACTORS=(0.5 1.0 2.5 5.0 7.5 10.0)

# List of kernels to run
KERNELS=("MASS3DPA" "DEL_DOT_VEC_2D")

for KERNEL_NAME in "${KERNELS[@]}"; do
echo "Running kernel: $KERNEL_NAME"

for factor in "${FACTORS[@]}"; do
echo " Running with sizefact = $factor"
./bin/raja-perf.exe \
-k "$KERNEL_NAME" \
--npasses 3 \
--npasses-combiners Average Minimum Maximum \
--outfile "${KERNEL_NAME}_factor_${factor}" \
--sizefact "$factor" \
--warmup-perfrun-same
done
done
Loading