File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -415,9 +415,11 @@ function gen_dockerfile() {
415
415
416
416
DOCKERFILE_GPU_ENV=" "
417
417
DOCKERFILE_CUDNN_DSO=" "
418
+ DOCKERFILE_CUBLAS_DSO=" "
418
419
if [[ ${WITH_GPU:- OFF} == ' ON' ]]; then
419
420
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"
421
423
fi
422
424
423
425
cat << EOF
458
460
${PADDLE_VERSION} && \
459
461
ldconfig
460
462
${DOCKERFILE_CUDNN_DSO}
463
+ ${DOCKERFILE_CUBLAS_DSO}
461
464
${DOCKERFILE_GPU_ENV}
462
465
ENV NCCL_LAUNCH_MODE PARALLEL
463
466
EOF
You can’t perform that action at this time.
0 commit comments