-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·50 lines (42 loc) · 1.58 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
#!/bin/bash
set -eu
cd $(dirname "$0")
if [ ! -f _deps/cudnn-9.1-linux-x64-v7.1.tgz ]; then
echo "Required cuDNN 7.1 for CUDA 9.1."
echo "https://developer.nvidia.com/rdp/cudnn-download"
exit 1
fi
if [ ! -f _deps/cuda_9.1.85_387.26_linux ]; then
curl -k -L \
https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux \
-o _deps/cuda_9.1.85_387.26_linux
chmod +x _deps/cuda_9.1.85_387.26_linux
fi
if [ ! -f _deps/cuda_9.1.85.1_linux ]; then
curl -k -L \
https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/1/cuda_9.1.85.1_linux \
-o _deps/cuda_9.1.85.1_linux
chmod +x _deps/cuda_9.1.85.1_linux
fi
if [ ! -f _deps/cuda_9.1.85.2_linux ]; then
curl -k -L \
https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/2/cuda_9.1.85.2_linux \
-o _deps/cuda_9.1.85.2_linux
chmod +x _deps/cuda_9.1.85.2_linux
fi
if [ ! -f _deps/cuda_9.1.85.3_linux ]; then
curl -k -L \
https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/3/cuda_9.1.85.3_linux \
-o _deps/cuda_9.1.85.3_linux
chmod +x _deps/cuda_9.1.85.3_linux
fi
if [ ! -f _deps/bazel-0.11.0-installer-linux-x86_64.sh ]; then
curl -k -L \
https://github.com/bazelbuild/bazel/releases/download/0.11.0/bazel-0.11.0-installer-linux-x86_64.sh \
-o _deps/bazel-0.11.0-installer-linux-x86_64.sh
fi
if [ ! -f _deps/Miniconda3-4.5.1-Linux-x86_64.sh ]; then
curl -k -L \
https://repo.continuum.io/miniconda/Miniconda3-4.5.1-Linux-x86_64.sh \
-o _deps/Miniconda3-4.5.1-Linux-x86_64.sh
fi