-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·56 lines (43 loc) · 1.98 KB
/
setup.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
56
#!/bin/zsh
START="$(date +%s)"
######################################
### Conda Environment Installation ###
######################################
# Uncomment the necessary environment that corresponds with hardware available
# NOTE: GPU version only works with CUDA devices.
cd environments
conda env create -f cpu_environment.yml
#conda env create -f gpu_environment.yml
##########################
### Dataset Extraction ###
##########################
cd ../protein_dataset
tar -xf 1e14.zip.bz2
tar -xf 1e15.zip.bz2
tar -xf 1e16.zip.bz2
###########################
### NN Model Extraction ###
###########################
cd ../models/gpu1/early_termination
zip -F --quiet gpu1_1e14_early_termination.zip --out gpu1_1e14_early_termination_FULL.zip
zip -F --quiet gpu1_1e15_early_termination.zip --out gpu1_1e15_early_termination_FULL.zip
zip -F --quiet gpu1_1e16_early_termination.zip --out gpu1_1e16_early_termination_FULL.zip
unzip gpu1_1e14_early_termination_FULL.zip
unzip gpu1_1e15_early_termination_FULL.zip
unzip gpu1_1e16_early_termination_FULL.zip
cd ../no_early_termination
zip -F --quiet gpu1_1e14_no_early_termination.zip --out gpu1_1e14_no_early_termination_FULL.zip
zip -F --quiet gpu1_1e15_no_early_termination.zip --out gpu1_1e15_no_early_termination_FULL.zip
zip -F --quiet gpu1_1e16_no_early_termination.zip --out gpu1_1e16_no_early_termination_FULL.zip
unzip gpu1_1e14_no_early_termination_FULL.zip
unzip gpu1_1e15_no_early_termination_FULL.zip
unzip gpu1_1e16_no_early_termination_FULL.zip
cd ../../gpu4/early_termination
zip -F --quiet gpu4_1e14_early_termination.zip --out gpu4_1e14_early_termination_FULL.zip
zip -F --quiet gpu4_1e15_early_termination.zip --out gpu4_1e15_early_termination_FULL.zip
zip -F --quiet gpu4_1e16_early_termination.zip --out gpu4_1e16_early_termination_FULL.zip
unzip gpu4_1e14_early_termination_FULL.zip
unzip gpu4_1e15_early_termination_FULL.zip
unzip gpu4_1e16_early_termination_FULL.zip
DURATION=$[ $(date +%s) - ${START} ]
echo "Setup took ${DURATION} seconds"