summaryrefslogtreecommitdiff
path: root/cuda-global/timing-study/timing_study.sh
blob: ef7ebcbf0e3b69fc166d67fa36562d0cd8900ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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