File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# A image for building paddle binaries
2
2
# Use cuda devel base image for both cpu and gpu environment
3
+
4
+ # When you modify it, please be aware of cudnn-runtime version
5
+ # and libcudnn.so.x in paddle/scripts/docker/build.sh
3
6
FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04
4
7
MAINTAINER PaddlePaddle Authors <
[email protected] >
5
8
Original file line number Diff line number Diff line change 155
155
function gen_dockerfile() {
156
156
# Set BASE_IMAGE according to env variables
157
157
if [[ ${WITH_GPU} == " ON" ]]; then
158
- BASE_IMAGE=" nvidia/cuda:8.0-cudnn5 -runtime-ubuntu16.04"
158
+ BASE_IMAGE=" nvidia/cuda:8.0-cudnn7 -runtime-ubuntu16.04"
159
159
else
160
160
BASE_IMAGE=" ubuntu:16.04"
161
161
fi
@@ -164,7 +164,7 @@ function gen_dockerfile() {
164
164
DOCKERFILE_CUDNN_DSO=" "
165
165
if [[ ${WITH_GPU:- OFF} == ' ON' ]]; then
166
166
DOCKERFILE_GPU_ENV=" ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu:\$ {LD_LIBRARY_PATH}"
167
- DOCKERFILE_CUDNN_DSO=" RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.5 /usr/lib/x86_64-linux-gnu/libcudnn.so"
167
+ DOCKERFILE_CUDNN_DSO=" RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7 /usr/lib/x86_64-linux-gnu/libcudnn.so"
168
168
fi
169
169
170
170
cat << EOF
You can’t perform that action at this time.
0 commit comments