Skip to content

Commit

Permalink
Add srun script
Browse files Browse the repository at this point in the history
  • Loading branch information
GabTux committed Apr 8, 2024
1 parent e521579 commit 7909d6b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/srun_benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# This is a specialized bash script designed for executing benchmarks using 'srun'.


if [ $# -eq 0 ]; then
echo "Usage: $0 <benchmark_name>"
exit 1
fi

set -e

. scripts/build.sh --source-only
build_benchmark

JOB_FILE="serial_job_arm.sh"

cd build/benchmark
cp ~/"$JOB_FILE" .
sed -i 's/REPLACE_HERE/'"$1"'/g' $JOB_FILE
sbatch $JOB_FILE

0 comments on commit 7909d6b

Please sign in to comment.