-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenv.sh
More file actions
46 lines (39 loc) · 1.05 KB
/
Copy pathenv.sh
File metadata and controls
46 lines (39 loc) · 1.05 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
## !! PLEASE MODIFY THE VALUE OF "GROUP_NAME"
## Write here the name of your group
## Please use the name you submitted in the registration form
export GROUP_NAME="test_group"
## !!
RED='\033[0;31m'
PUR='\033[0;35m'
GRE='\033[0;32m'
NC='\033[0m' # No Color
export BIN=bin/bfs
export ITERATIONS=15
export HOST="baldo"
export SHARED_DIR="/data/hackathon"
if [[ ! -z $1 ]]; then
export MTX_PATH=$1
else
export MTX_PATH="${SHARED_DIR}/datasets"
fi
# Read graph paths from matrices_list.txt in each subfolder
GRAPHS_SMALL_D=()
while IFS= read -r line; do
GRAPHS_SMALL_D+=("$line")
done < "$MTX_PATH/small_diameter/matrices_list.txt"
GRAPHS_LARGE_D=()
while IFS= read -r line; do
GRAPHS_LARGE_D+=("$line")
done < "$MTX_PATH/large_diameter/matrices_list.txt"
GRAPHS_G500=()
while IFS= read -r line; do
GRAPHS_G500+=("$line")
done < "$MTX_PATH/graph500/matrices_list.txt"
ALL_GRAPHS=()
while IFS= read -r line; do
ALL_GRAPHS+=("$line")
done < "$MTX_PATH/matrices_list.txt"
export GRAPHS_SMALL_D
export GRAPHS_LARGE_D
export GRAPHS_G500
export ALL_GRAPHS