Skip to content

Commit 3b7e20b

Browse files
authored
fix manylinux cuda9 build (#13704)
* test=release/1.0.0 * update * update
1 parent 9de6d88 commit 3b7e20b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ EOF
598598
EOF
599599

600600
if [[ ${WITH_GPU} == "ON" ]]; then
601-
NCCL_DEPS="apt-get install -y --allow-downgrades libnccl2=2.2.13-1+cuda${CUDA_MAJOR} libnccl-dev=2.2.13-1+cuda${CUDA_MAJOR} &&"
601+
NCCL_DEPS="apt-get install -y --allow-downgrades libnccl2=2.2.13-1+cuda${CUDA_MAJOR} libnccl-dev=2.2.13-1+cuda${CUDA_MAJOR} || true"
602602
else
603603
NCCL_DEPS=""
604604
fi
@@ -614,9 +614,8 @@ EOF
614614
cat >> ${PADDLE_ROOT}/build/Dockerfile <<EOF
615615
ADD python/dist/*.whl /
616616
# run paddle version to install python packages first
617-
RUN apt-get update &&\
618-
${NCCL_DEPS}\
619-
apt-get install -y wget python-pip python-opencv libgtk2.0-dev dmidecode python-tk && easy_install -U pip && \
617+
RUN apt-get update && ${NCCL_DEPS}
618+
RUN apt-get install -y wget python-pip python-opencv libgtk2.0-dev dmidecode python-tk && easy_install -U pip && \
620619
pip install /*.whl; apt-get install -f -y && \
621620
apt-get clean -y && \
622621
rm -f /*.whl && \

0 commit comments

Comments
 (0)