From 69f2f2853688c155509a80c5812b7bce24295517 Mon Sep 17 00:00:00 2001 From: Shibo Tao <62922815+T8T9@users.noreply.github.com> Date: Wed, 29 Apr 2020 13:59:16 +0800 Subject: [PATCH] MOD upgrade ccache version to 3.6 to support nvcc (#24174) --- .../Dockerfile.cuda10_cudnn7_gcc48_ubuntu16 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/manylinux1/Dockerfile.cuda10_cudnn7_gcc48_ubuntu16 b/tools/manylinux1/Dockerfile.cuda10_cudnn7_gcc48_ubuntu16 index 8a72c3e0a36..06cb16b5769 100644 --- a/tools/manylinux1/Dockerfile.cuda10_cudnn7_gcc48_ubuntu16 +++ b/tools/manylinux1/Dockerfile.cuda10_cudnn7_gcc48_ubuntu16 @@ -64,7 +64,7 @@ RUN apt-get update && \ automake locales clang-format swig \ liblapack-dev liblapacke-dev \ clang-3.8 llvm-3.8 libclang-3.8-dev \ - net-tools libtool ccache && \ + net-tools libtool && \ apt-get clean -y # install cmake @@ -112,7 +112,7 @@ RUN rm Python-$version.tgz setuptools-40.6.2.zip pip-18.0.tar.gz && \ rm -r Python-$version setuptools-40.6.2 pip-18.0 # Install Go and glide -RUN wget -qO- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | \ +RUN wget -qO- https://paddle-ci.cdn.bcebos.com/go1.8.1.linux-amd64.tar.gz | \ tar -xz -C /usr/local && \ mkdir /root/gopath && \ mkdir /root/gopath/bin && \ @@ -220,6 +220,13 @@ RUN wget --no-check-certificate https://pslib.bj.bcebos.com/openmpi-1.4.5.tar.gz apt-get install libprotobuf-dev -y RUN pip --no-cache-dir install -U netifaces==0.10.9 +# ccache 3.6 +RUN wget https://paddle-ci.cdn.bcebos.com/ccache-3.6.tar.gz && \ + tar xf ccache-3.6.tar.gz && mkdir /usr/local/ccache-3.6 && cd ccache-3.6 && \ + ./configure -prefix=/usr/local/ccache-3.6 && \ + make -j8 && make install && \ + ln -s /usr/local/ccache-3.6/bin/ccache /usr/local/bin/ccache + # Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service RUN mkdir /var/run/sshd RUN echo 'root:root' | chpasswd -- GitLab