forked from kristjankorjus/Replicating-DeepMind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·64 lines (49 loc) · 1.18 KB
/
install.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
57
58
59
60
61
62
63
64
#!/bin/bash
#
# Run this file from the project root to install all required libraries:
# * Compile ALE under ../libraries/ale
# * Compile cuda-convnet2 under ../libraries/cuda-convnet2
#
# ---
# ALE
# ---
# Store current directory name and go in ALE directory
cwd=$(pwd)
cd ./libraries/ale
# Prepare Makefiles based on OS
if [[ "$OSTYPE" == "linux-gnu" ]]; then
cp makefile.unix makefile
elif [[ "$OSTYPE" == "darwin"* ]]; then
cp makefile.mac makefile
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo "WARNING: Not tested under cygwin"
cp makefile.unix makefile
elif [[ "$OSTYPE" == "win32" ]]; then
echo "Windows is not supported. Terminating."
exit
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo "WARNING: Not tested under FreeBSD"
cp makefile.unix makefile
else
echo "Unknown OS. Terminating."
exit
fi
# Compile ALE
make
# Go back to the main directory
cd "$cwd"
# Test ALE
./libraries/ale/ale -help
# -------------
# cuda-convnet2
# -------------
# Go to cuda-convnet directory
cd ./libraries/cuda-convnet2
# Compile cuda-convnet2
./build.sh
# Go back to the main directory
cd "$cwd"
# -----------
# Misc
# ----------
mkdir log