-
Notifications
You must be signed in to change notification settings - Fork 0
/
ompi_job_pairwise
38 lines (28 loc) · 1.03 KB
/
ompi_job_pairwise
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#SBATCH -N 2
#SBATCH -t 00:30:00
#SBATCH -J MULTPAIR
#SBATCH -q exclusive
#SBATCH -C alembert
SIZE=1024
WINDOW=128
ITER=1000
WRAP="timeout 20s"
export RESULT_PREFIX="results/ompi_${WINDOW}_${SIZE}_pairwise"
module unload mpi
module load mpi/openmpi
mpirun --version
cd $HOME/multirate
make clean >/dev/null
make > /dev/null
for i in {1..20}
do
ntasks=$((i*2))
for j in {1..30}
do
${WRAP} srun -N 2 -n 2 --ntasks-per-node 1 --exclusive ./multirate -s $SIZE -w $WINDOW -i $ITER -t $i -p | tee -a ${RESULT_PREFIX}_threads
${WRAP} srun -N 2 -n 2 --ntasks-per-node 1 --exclusive ./multirate -s $SIZE -w $WINDOW -i $ITER -t $i -p -c | tee -a ${RESULT_PREFIX}_threads_comm
srun -N 2 -n $ntasks --ntasks-per-node $i --exclusive ./multirate -s $SIZE -w $WINDOW -i $ITER -n $i -m $i -p | tee -a ${RESULT_PREFIX}_process_mt
srun -N 2 -n $ntasks --ntasks-per-node $i --exclusive ./multirate -s $SIZE -w $WINDOW -i $ITER -n $i -m $i -p -Dthrds | tee -a ${RESULT_PREFIX}_process
done
done