gol/mpi/timing-study/timing_study.sh

25 lines
851 B
Bash
Raw Normal View History

2021-12-08 03:50:12 -05:00
#!/bin/bash
2021-12-08 20:38:46 -05:00
#SBATCH --time=0:20:00 # walltime, abbreviated by -t
2021-12-08 20:52:57 -05:00
#SBATCH --nodes=24 # number of cluster nodes, abbreviated by -N
2021-12-08 03:50:12 -05:00
#SBATCH -o slurm-%j.out-%N # name of the stdout, using the job number (%j) and the first node (%N)
#SBATCH -e slurm-%j.err-%N # name of the stderr, using job and first node values
2021-12-08 20:52:57 -05:00
#SBATCH --ntasks=2 # number of MPI tasks, abbreviated by -n
2021-12-08 03:50:12 -05:00
# additional information for allocated clusters
#SBATCH --account=usucs5030 # account - abbreviated by -A
#SBATCH --partition=kingspeak # partition, abbreviated by -p
cd $HOME/gol/mpi
mkdir timing-study
module load intel mpich
iterations=1000
2021-12-08 20:52:57 -05:00
for cores in 1 4 8 12 16 20 24
2021-12-08 03:50:12 -05:00
do
2021-12-08 20:52:57 -05:00
for size in 250 500 750 1000 1250 1500 1750 2000
2021-12-08 03:50:12 -05:00
do
mpirun -np $cores ./gol simulate random $size $size $iterations 1 > timing-study/output-$cores-$iterations-$size.txt
done
done