Skip to content

Commit 8a50d4d

Browse files
authored
Merge pull request #10887 from putcn/fix-cuda9-prod-image
Fix cuda9 prod image
2 parents 224bd8f + e68d196 commit 8a50d4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ function gen_dockerfile() {
415415

416416
DOCKERFILE_GPU_ENV=""
417417
DOCKERFILE_CUDNN_DSO=""
418+
DOCKERFILE_CUBLAS_DSO=""
418419
if [[ ${WITH_GPU:-OFF} == 'ON' ]]; then
419420
DOCKERFILE_GPU_ENV="ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu:\${LD_LIBRARY_PATH}"
420-
DOCKERFILE_CUDNN_DSO="RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.${CUDNN_MAJOR} /usr/lib/x86_64-linux-gnu/libcudnn.so"
421+
DOCKERFILE_CUDNN_DSO="RUN ln -sf /usr/lib/x86_64-linux-gnu/libcudnn.so.${CUDNN_MAJOR} /usr/lib/x86_64-linux-gnu/libcudnn.so"
422+
DOCKERFILE_CUBLAS_DSO="RUN ln -sf /usr/local/cuda/targets/x86_64-linux/lib/libcublas.so.${CUDA_MAJOR} /usr/lib/x86_64-linux-gnu/libcublas.so"
421423
fi
422424

423425
cat <<EOF
@@ -458,6 +460,7 @@ EOF
458460
${PADDLE_VERSION} && \
459461
ldconfig
460462
${DOCKERFILE_CUDNN_DSO}
463+
${DOCKERFILE_CUBLAS_DSO}
461464
${DOCKERFILE_GPU_ENV}
462465
ENV NCCL_LAUNCH_MODE PARALLEL
463466
EOF

0 commit comments

Comments
 (0)