Skip to content

Commit

Permalink
create slurm job submission scripts for timings
Browse files Browse the repository at this point in the history
  • Loading branch information
everythingfunctional committed Aug 25, 2023
1 parent 190f631 commit aeab4fe
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 0 deletions.
14 changes: 14 additions & 0 deletions multi_node_scaling_OpenCoarrays.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH --nodes=16
#SBATCH --time=12:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml OpenCoarrays
for i in {1..3}; do
for n in {1..16}; do
fpm run --compiler gfortran-workaround.sh --flag "-O3 -fcoarray=lib" --example lu_decomp --runner "srun --nodes=${n} --ntasks=${n} --cpu-bind=cores" -- example/lu_decomp/100x100.dat
done
done
14 changes: 14 additions & 0 deletions multi_node_scaling_cray.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH --nodes=16
#SBATCH --time=02:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml PrgEnv-cray
for i in {1..3}; do
for n in {1..16}; do
fpm run --compiler crayftn-workaround.sh --flag "-O3" --example lu_decomp --runner "srun --nodes=${n} --ntasks=${n} --cpu-bind=cores" -- example/lu_decomp/100x100.dat
done
done
15 changes: 15 additions & 0 deletions single_image_timing_OpenCoarrays.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=02:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml OpenCoarrays
for i in {1..3}; do
for n in {1..100}; do
fpm run --compiler gfortran-workaround.sh --flag "-O3 -fcoarray=lib" --example lu_decomp --runner srun -- example/lu_decomp/${n}x${n}.dat
done
done
15 changes: 15 additions & 0 deletions single_image_timing_cray.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=02:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml PrgEnv-cray
for i in {1..3}; do
for n in {1..100}; do
fpm run --compiler crayftn-workaround.sh --flag "-O3" --example lu_decomp --runner srun -- example/lu_decomp/${n}x${n}.dat
done
done
14 changes: 14 additions & 0 deletions single_node_scaling_OpenCoarrays.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --time=24:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml OpenCoarrays
for i in {1..3}; do
for n in {1..16}; do
fpm run --compiler gfortran-workaround.sh --flag "-O3 -fcoarray=lib" --example lu_decomp --runner "srun --ntasks=${n} --cpu-bind=cores" -- example/lu_decomp/100x100.dat
done
done
14 changes: 14 additions & 0 deletions single_node_scaling_cray.sl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --time=02:00:00
#SBATCH --account=nstaff
#SBATCH --qos=regular
#SBATCH --constraint=cpu
#SBATCH --cpus-per-task=1

ml PrgEnv-cray
for i in {1..3}; do
for n in {1..16}; do
fpm run --compiler crayftn-workaround.sh --flag "-O3" --example lu_decomp --runner "srun --ntasks=${n} --cpu-bind=cores" -- example/lu_decomp/100x100.dat
done
done

0 comments on commit aeab4fe

Please sign in to comment.