diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2021-12-08 01:50:12 -0700 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2021-12-08 01:50:12 -0700 |
commit | c846568cf28b4d128cf893dc0abb6ccb5ccdcc32 (patch) | |
tree | 01ad0e303ea59103f2af9b9aa007785b88fa80ca /cuda-global/timing-study/timing_study.sh | |
parent | 253b267f1cee377a834860fb4deac54ef9a78b7a (diff) | |
download | gol-c846568cf28b4d128cf893dc0abb6ccb5ccdcc32.tar.gz gol-c846568cf28b4d128cf893dc0abb6ccb5ccdcc32.zip |
Timing study
Diffstat (limited to 'cuda-global/timing-study/timing_study.sh')
-rwxr-xr-x | cuda-global/timing-study/timing_study.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cuda-global/timing-study/timing_study.sh b/cuda-global/timing-study/timing_study.sh new file mode 100755 index 0000000..ef7ebcb --- /dev/null +++ b/cuda-global/timing-study/timing_study.sh @@ -0,0 +1,18 @@ +#!/bin/bash +#SBATCH --time=0:30:00 # walltime, abbreviated by -t +#SBATCH --nodes=1 # number of cluster nodes, abbreviated by -N +#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 +#SBATCH --ntasks=1 # number of MPI tasks, abbreviated by -n +# additional information for allocated clusters +#SBATCH --account=notchpeak-shared-short # account - abbreviated by -A +#SBATCH --partition=notchpeak-shared-short # partition, abbreviated by -p +#SBATCH --gres=gpu:k80:1 + +cd $HOME/gol/cuda-global + +iterations=1000 +for size in 250 500 750 1000 1250 1500 1750 2000 +do + srun ./gol simulate random $size $size $iterations 1 > timing-study/output-$cores-$iterations-$size.txt +done |