This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 33set -ex
44
55# Install common dependencies
6+ # cleanup again to avoid any sha mismatch
7+ apt-get clean
8+ rm -rf /var/lib/apt/lists/*
69apt-get update
710apt-get install -y --no-install-recommends \
811 curl \
@@ -27,6 +30,9 @@ apt-get install -y --no-install-recommends \
2730 software-properties-common \
2831 build-essential
2932
33+ # cleanup again to avoid any sha mismatch
34+ apt-get clean
35+ rm -rf /var/lib/apt/lists/*
3036# setup gcc
3137add-apt-repository ppa:ubuntu-toolchain-r/test
3238apt-get update
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERS
66
77ENV DEBIAN_FRONTEND noninteractive
88
9- RUN apt-get update
10-
119# CUDA paths - we install cudnn ourselves (only Trusty) so we can match the version with
1210# PyTorch conda install
1311ARG CUDA_VERSION
@@ -22,6 +20,8 @@ ARG GCC_VERSION
2220ARG CMAKE_VERSION
2321ADD ./common/install_base.sh install_base.sh
2422RUN bash ./install_base.sh && rm install_base.sh
23+
24+ # Setup ccache env variables
2525ENV PATH /usr/local/bin/ccache:$PATH
2626ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
2727ENV PATH /usr/local/cuda/bin:$PATH
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERS
66
77ENV DEBIAN_FRONTEND noninteractive
88
9- RUN apt-get update
10-
119# CUDA paths
1210ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/cuda/targets/x86_64-linux/lib/stubs/:$LD_LIBRARY_PATH
1311ENV PATH /usr/local/bin:/usr/local/cuda/bin:$PATH
@@ -17,6 +15,8 @@ ARG GCC_VERSION
1715ARG CMAKE_VERSION
1816ADD ./common/install_base.sh install_base.sh
1917RUN bash ./install_base.sh && rm install_base.sh
18+
19+ # Setup ccache env variables
2020ENV PATH /usr/local/bin/ccache:$PATH
2121ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
2222ENV PATH /usr/local/cuda/bin:$PATH
You can’t perform that action at this time.
0 commit comments