-
Notifications
You must be signed in to change notification settings - Fork 1
/
BashFull.sh
31 lines (31 loc) · 935 Bytes
/
BashFull.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
#!/bin/bash
while getopts l option
do
case "${option}" in
l) LOCAL=1;;
esac
done
DATA=$(date)
if [[ "$LOCAL" -eq "1" ]]; then
printf "Local Execution - $DATA\n\n"
sh BashBase.sh -e ./pagerank_contest_edgelists/graph_full_e.edgelist \
-v ./pagerank_contest_edgelists/graph_full_v.edgelist\
-n full.csv\
-d 0.85\
-t 0.000001\
-a ./pagerank_truth_values/full_directed_truth_string\
-b ./pagerank_truth_values/full_undirected_truth_string
else
printf "Cluster Execution - $DATA\n\n"
GPU="srun -N1 --gres=gpu:1 "
CPU="srun -w slurm-cuda-master "
sh BashBase.sh -e ./pagerank_contest_edgelists/graph_full_e.edgelist \
-v ./pagerank_contest_edgelists/graph_full_v.edgelist\
-n full.csv\
-d 0.85\
-t 0.000001\
-a ./pagerank_truth_values/full_directed_truth_string\
-b ./pagerank_truth_values/full_undirected_truth_string\
-c "$CPU"\
-g "$GPU"
fi