-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sh
executable file
·46 lines (43 loc) · 2.2 KB
/
main.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
42
43
44
45
46
#!/usr/bin/env bash
src="pagerank-sequential-vs-openmp"
out="/home/resources/Documents/subhajit/$src.log"
ulimit -s unlimited
printf "" > "$out"
# Download program
rm -rf $src
git clone https://github.com/puzzlef/$src
cd $src
# Run
run() {
g++ -O3 -fopenmp main.cxx
echo "OMP_NUM_THREADS=$OMP_NUM_THREADS" | tee -a "$out"
stdbuf --output=L ./a.out ~/data/min-1DeadEnd.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/min-2SCC.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/min-4SCC.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/min-NvgraphEx.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/web-Stanford.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/web-BerkStan.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/web-Google.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/web-NotreDame.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/soc-Slashdot0811.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/soc-Slashdot0902.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/soc-Epinions1.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/coAuthorsDBLP.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/coAuthorsCiteseer.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/soc-LiveJournal1.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/coPapersCiteseer.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/coPapersDBLP.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/indochina-2004.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/italy_osm.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/great-britain_osm.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/germany_osm.mtx 2>&1 | tee -a "$out"
stdbuf --output=L ./a.out ~/data/asia_osm.mtx 2>&1 | tee -a "$out"
echo "" | tee -a "$out"
}
export OMP_NUM_THREADS=2 && run
export OMP_NUM_THREADS=4 && run
export OMP_NUM_THREADS=8 && run
export OMP_NUM_THREADS=16 && run
export OMP_NUM_THREADS=28 && run
export OMP_NUM_THREADS=32 && run
export OMP_NUM_THREADS=48 && run