-
Notifications
You must be signed in to change notification settings - Fork 0
/
bench_strong_scaling.sh
41 lines (37 loc) · 1.08 KB
/
bench_strong_scaling.sh
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
36
37
38
39
40
41
#!/bin/bash
#SBATCH -N 16
#SBATCH -C cpu
#SBATCH -q regular
#SBATCH -t 00:45:00
#SBATCH -A m1982
. env.sh
export OMP_MAX_ACTIVE_LEVELS=1
export TRIAL_COUNT=5
export DISTRIBUTION=accumulator_stationary
export ITERATIONS=20
export RANK=25
export OMP_NUM_THREADS=16
export CORES_PER_NODE=128
export RANKS_PER_NODE=$((CORES_PER_NODE / OMP_NUM_THREADS))
for N in 16
do
export NODE_COUNT=$N
for TENSOR in amazon reddit
do
for ALG in cp_arls_lev sts_cp
do
for (( trial=1; trial<=$TRIAL_COUNT; trial++ ))
do
srun -N $NODE_COUNT -n $((NODE_COUNT * RANKS_PER_NODE)) -c $((OMP_NUM_THREADS * 2)) python decompose.py -i $TENSOR \
--trank $RANK \
-s 65536 \
-iter $ITERATIONS \
-alg $ALG \
-dist $DISTRIBUTION \
-r $TRIAL_COUNT \
-m nnodes_$NODE_COUNT \
-o data/strong_scaling
done
done
done
done