-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_new_speedup.sh
executable file
·38 lines (34 loc) · 1.46 KB
/
run_new_speedup.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
#! /bin/bash
matrixsize=200000
cond=1e4
# Do small matrices by hand on high memory nodes.
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 1 -hostfile ./hostfile_himem ./test_timing $matrixsize 1 1\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 2 -hostfile ./hostfile_himem ./test_timing $matrixsize 2 1\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 4 -hostfile ./hostfile_himem ./test_timing $matrixsize 2 2\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 8 -hostfile ./hostfile_himem ./test_timing $matrixsize 4 2\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 16 -hostfile ./hostfile_himem ./test_timing $matrixsize 4 4\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 32 -hostfile ./hostfile_himem ./test_timing $matrixsize 8 4\""
ssh node785 -t "cd `pwd`; bash -c \"make test_timing; mpirun -n 64 -hostfile ./hostfile_himem ./test_timing $matrixsize 8 8\""
n=10
i=8
j=8
for k in `seq 6 $n`
do
if [ $(($i * $j)) -lt 129 ]
then
nproc=128
else
nproc=$(($i * $j))
fi
qsub -pe hpc.pe $nproc \
-v nprows="$i",npcols="$j",matrixsize="$matrixsize",cond="$cond",userandsvd="--new" \
test_timing_sub.sh
# echo -e "nproc = $nproc, nprows = $i, npcols = $j\n"
if [ $(($k % 2)) == 0 ]
then
i=$(($i * 2))
else
j=$(($j * 2))
fi
done
cat res_0200000_*_new.dat > timing_0200000_p_new.dat