-
Notifications
You must be signed in to change notification settings - Fork 1
/
experlap.sh
35 lines (34 loc) · 1.62 KB
/
experlap.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
#!/bin/bash
#echo "" > /home/stathis/Dropbox/paralg/APSPc/apsp.out
for j in 500
do
echo "--------------------" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
echo " size of matrix $j" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
sed -i -e "s/.*#define N.*/#define N $j/g" /home/stathis/Dropbox/paralg/APSPc/\seq/bspapspseq.c
sed -i -e "s/.*#define N.*/#define N $j/g" /home/stathis/Dropbox/paralg/APSPc/par-v1/bspalpspbr.c
sed -i -e "s/.*#define N.*/#define N $j/g" /home/stathis/Dropbox/paralg/APSPc/par-v2/bspalpspbnt.c
#sed -i -e "s/.*#define N.*/#define N $j/g" /home/stathis/Dropbox/paralg/APSPc/par-v3/bspapspbc.c
cd /home/stathis/Dropbox/paralg/APSPc/seq
make
cd /home/stathis/Dropbox/paralg/APSPc/par-v1
make
cd /home/stathis/Dropbox/paralg/APSPc/par-v2
make
#echo "-------------------" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
cd /home/stathis/Dropbox/paralg/APSPc/
./seq/allpairseq #>> /home/stathis/Dropbox/paralg/APSPc/apsp.out
for i in 1 2 4 8 16 32
do
echo num of procs $i
#echo "" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
#echo " num of procs $i" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
#echo "************" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
echo version 1 copy all matrix Row Distr
cd /home/stathis/Dropbox/paralg/APSPc/par-v1
mpirun -np $i allpairrb #>> /home/stathis/Dropbox/paralg/APSPc/apsp.out
echo version 2 Row Distr need to know #>> /home/stathis/Dropbox/paralg/APSPc/apsp.out
cd /home/stathis/Dropbox/paralg/APSPc/par-v2
mpirun -np $i allpairrb_ntn #>> /home/stathis/Dropbox/paralg/APSPc/apsp.out
#echo "" >> /home/stathis/Dropbox/paralg/APSPc/apsp.out
done
done