@@ -14,13 +14,15 @@ if [[ $1 == --help || $1 == help ]]; then
14
14
[ARGVARS...] get_deps.sh [cpu|gpu] [--help|help]
15
15
16
16
Argument variables:
17
- VERBOSE=1 Print commands
18
- FORCE=1 Download even if present
19
- WITH_DLPACK=0 Skip dlpack
20
- WITH_TF=0 Skip Tensorflow
21
- WITH_TFLITE=0 Skip Tensorflow
22
- WITH_PT=0 Skip PyTorch
23
- WITH_ORT=0 Skip OnnxRuntime
17
+ CPU=1 Get CPU dependencies
18
+ GPU=1 Get GPU dependencies
19
+ VERBOSE=1 Print commands
20
+ FORCE=1 Download even if present
21
+ WITH_DLPACK=0 Skip dlpack
22
+ WITH_TF=0|S3 Skip Tensorflow or download from S3 repo
23
+ WITH_TFLITE=0|S3 Skip TensorflowLite or download from S3 repo
24
+ WITH_PT=0|S3 Skip PyTorch or download from S3 repo
25
+ WITH_ORT=0|S3 Skip OnnxRuntime or download from S3 repo
24
26
25
27
END
26
28
exit 0
29
31
set -e
30
32
[[ $VERBOSE == 1 ]] && set -x
31
33
32
- if [[ " $1 " == " cpu" ]]; then
34
+ if [[ " $1 " == " cpu" || $CPU == 1 ]]; then
33
35
GPU=0
34
36
DEVICE=cpu
35
- elif [[ " $1 " == " gpu" ]]; then
37
+ elif [[ " $1 " == " gpu" || $GPU == 1 ]]; then
36
38
GPU=1
37
39
DEVICE=gpu
38
40
else
@@ -100,7 +102,13 @@ if [[ $WITH_TF != 0 ]]; then
100
102
if [[ $ARCH == x64 ]]; then
101
103
TF_VERSION=1.15.0
102
104
TF_ARCH=x86_64
103
- LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
105
+
106
+ # special case for 1.15.0 as official version does not suport CUDA 10.1
107
+ if [[ $WITH_TF == S3 || $GPU == 1 ]]; then
108
+ LIBTF_URL_BASE=https://s3.amazonaws.com/redismodules/tensorflow
109
+ else
110
+ LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
111
+ fi
104
112
elif [[ $ARCH == arm64v8 ]]; then
105
113
TF_VERSION=1.15.0
106
114
TF_ARCH=arm64
@@ -115,7 +123,11 @@ if [[ $WITH_TF != 0 ]]; then
115
123
TF_OS=darwin
116
124
TF_BUILD=cpu
117
125
TF_ARCH=x86_64
118
- LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
126
+ if [[ $WITH_TF == S3 ]]; then
127
+ LIBTF_URL_BASE=https://s3.amazonaws.com/redismodules/tensorflow
128
+ else
129
+ LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
130
+ fi
119
131
fi
120
132
121
133
LIBTF_ARCHIVE=libtensorflow-${TF_BUILD} -${TF_OS} -${TF_ARCH} -${TF_VERSION} .tar.gz
@@ -186,7 +198,7 @@ fi # WITH_TFLITE
186
198
187
199
# ##################################################################################### LIBTORCH
188
200
189
- PT_VERSION=" 1.4 .0"
201
+ PT_VERSION=" 1.5 .0"
190
202
191
203
if [[ $WITH_PT != 0 ]]; then
192
204
[[ $FORCE == 1 ]] && rm -rf $LIBTORCH
270
282
271
283
# ################################################################################## ONNXRUNTIME
272
284
273
- ORT_VERSION=" 1.0 .0"
285
+ ORT_VERSION=" 1.2 .0"
274
286
275
287
if [[ $WITH_ORT != 0 ]]; then
276
288
[[ $FORCE == 1 ]] && rm -rf $ONNXRUNTIME
0 commit comments