summaryrefslogtreecommitdiff
path: root/openmp/timing-study/timing_study.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/timing-study/timing_study.sh')
-rw-r--r--openmp/timing-study/timing_study.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/openmp/timing-study/timing_study.sh b/openmp/timing-study/timing_study.sh
new file mode 100644
index 0000000..16771a6
--- /dev/null
+++ b/openmp/timing-study/timing_study.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+#SBATCH --time=0:30:00 # walltime, abbreviated by -t
+#SBATCH --nodes=2 # 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=32
+# additional information for allocated clusters
+#SBATCH --account=usucs5030 # account - abbreviated by -A
+#SBATCH --partition=kingspeak # partition, abbreviated by -p
+
+cd $HOME/gol/openmp
+
+module load intel openmpi
+
+iterations=1000
+
+for threads in 20 24 #1 4 8 12 16 20 24
+do
+ for size in 250 500 750 1000 1250 1500 1750 2000
+ do
+ ./gol simulate random $size $size $iterations 1 $threads > timing-study/output-$threads-$iterations-$size.txt
+ done
+done