forked from UVA-LavaLab/graphTango
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.sh
More file actions
executable file
·71 lines (65 loc) · 2.51 KB
/
Copy pathprofile.sh
File metadata and controls
executable file
·71 lines (65 loc) · 2.51 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# As precaution, clear OMP stuff and remove any alg or update csv files in the folder
unset OMP_DISPLAY_ENV OMP_NUM_THREADS OMP_PROC_BIND OMP_PLACES
rm Alg*.csv
rm Update*.csv
export LD_LIBRARY_PATH=/home/alif/.installs/likwid/lib/ib/
export OMP_DISPLAY_ENV=true
export OMP_NUM_THREADS=12
export OMP_PROC_BIND=close
#export OMP_PLACES={2}:64:1
export OMP_PLACES=threads
dataDir=./inputResource/
#STRUCTURES=(adListChunked adListShared degAwareRHH stinger)
#STRUCTURES=(graphite adListChunked adListShared degAwareRHH stinger)
STRUCTURES=(graphTango)
batchSize=1000000
NumThreads=12
# whether each algorithm is weighted or unweighted
declare -A ALGORITHMS
ALGORITHMS=(
# [ccdyn]=0
# [prdyn]=0
[bfsdyn]=0
# [mcdyn]=0
# [sswpdyn]=1
# [ssspdyn]=1
)
# Max num_nodes to initialize for each dataset
declare -A DATASETS
DATASETS=(
[LiveJournal.csv]=4847571
[orkut.csv]=3072441
[wiki-topcats.csv]=1791489
[WikiTalk.csv]=2394385
# [rmat_1_1.csv]=1048576
# [rmat_1_2.csv]=1048576
# [rmat_1_4.csv]=1048576
# [rmat_1_8.csv]=1048576
# [rmat_1_16.csv]=1048576
# [rmat_1_32.csv]=1048576
# [rmat_1_64.csv]=1048576
# [rmat_1_128.csv]=1048576
# [rmat_1_256.csv]=1048576
# [rmat.csv]=33554432
)
for dataset in "${!DATASETS[@]}"; do
for structure in "${STRUCTURES[@]}"; do
for algorithm in "${!ALGORITHMS[@]}"; do
# if-else to make sure orkut runs in undirected mode
#if [ "$dataset" == "com-orkut.ungraph.shuffle.t.w.csv" ];
#then
# echo ./frontEnd -d 0 -w ${ALGORITHMS[$algorithm]} -f ${dataDir}$dataset -b ${batchSize} -s $structure -n ${DATASETS[$dataset]} -a $algorithm -t ${NumThreads}
# ./frontEnd -d 0 -w ${ALGORITHMS[$algorithm]} -f ${dataDir}$dataset -b ${batchSize} -s $structure -n ${DATASETS[$dataset]} -a $algorithm -t ${NumThreads}
#else
echo ./frontEnd -d 1 -w ${ALGORITHMS[$algorithm]} -f ${dataDir}$dataset -b ${batchSize} -s $structure -n ${DATASETS[$dataset]} -a $algorithm -t ${NumThreads}
./frontEnd -d 1 -w ${ALGORITHMS[$algorithm]} -f ${dataDir}$dataset -b ${batchSize} -s $structure -n ${DATASETS[$dataset]} -a $algorithm -t ${NumThreads}
#fi
# make right directory and move the two generated files into it
DIRECTORY=./results/${algorithm}/${structure}/${dataset}/
mkdir -p ${DIRECTORY}
mv Alg*.csv ${DIRECTORY}/
mv Update*.csv ${DIRECTORY}/
done
done
done