-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·55 lines (50 loc) · 1.16 KB
/
test.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
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
#SBATCH --job-name=betweenness
#SBATCH --nodes=1
#SBATCH --ntasks=1
source ./setup.sh
labels=("Zachary's Karate Club" "Dolphin Network" "Les Miserables Network")
texts=("data/edges.txt" "data/dolphin.txt" "data/lesmis.txt")
files=("vertex_bt" "vertex_estimate" "edge_bt")
index=0
make clean
make
echo ""
echo "-----FIND IMPORTANT VERTEX-----"
echo ""
for text in ${texts[@]}
do
echo ${labels[$index]}
for file in ${files[@]}
do
echo "./"$file
for i in 1 2 4 8 16
do
printf "Thread Count: %d\t" "$i"
OMP_NUM_THREADS=${i} ./$file bc/$text
done
done
index=$((index+1))
echo ""
done
echo "-----PERFORMANCE TESTING-----"
echo ""
labels=("College Football" "Scientific Collaboration Network" "Facebook Network")
texts=("data/collegefootball.txt" "data/collab.txt" "data/fb.txt")
index=0
for text in ${texts[@]}
do
echo ${labels[$index]}
for file in ${files[@]}
do
echo "./"$file
for i in 1 4 8 16
do
printf "Thread Count: %d\t" "$i"
OMP_NUM_THREADS=${i} ./$file bc/$text
done
done
index=$((index+1))
echo ""
done