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 3
3
set -ex
4
4
5
5
# Install common dependencies
6
+ # cleanup again to avoid any sha mismatch
7
+ apt-get clean
8
+ rm -rf /var/lib/apt/lists/*
6
9
apt-get update
7
10
apt-get install -y --no-install-recommends \
8
11
curl \
@@ -27,6 +30,9 @@ apt-get install -y --no-install-recommends \
27
30
software-properties-common \
28
31
build-essential
29
32
33
+ # cleanup again to avoid any sha mismatch
34
+ apt-get clean
35
+ rm -rf /var/lib/apt/lists/*
30
36
# setup gcc
31
37
add-apt-repository ppa:ubuntu-toolchain-r/test
32
38
apt-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
6
6
7
7
ENV DEBIAN_FRONTEND noninteractive
8
8
9
- RUN apt-get update
10
-
11
9
# CUDA paths - we install cudnn ourselves (only Trusty) so we can match the version with
12
10
# PyTorch conda install
13
11
ARG CUDA_VERSION
@@ -22,6 +20,8 @@ ARG GCC_VERSION
22
20
ARG CMAKE_VERSION
23
21
ADD ./common/install_base.sh install_base.sh
24
22
RUN bash ./install_base.sh && rm install_base.sh
23
+
24
+ # Setup ccache env variables
25
25
ENV PATH /usr/local/bin/ccache:$PATH
26
26
ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
27
27
ENV 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
6
6
7
7
ENV DEBIAN_FRONTEND noninteractive
8
8
9
- RUN apt-get update
10
-
11
9
# CUDA paths
12
10
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/cuda/targets/x86_64-linux/lib/stubs/:$LD_LIBRARY_PATH
13
11
ENV PATH /usr/local/bin:/usr/local/cuda/bin:$PATH
@@ -17,6 +15,8 @@ ARG GCC_VERSION
17
15
ARG CMAKE_VERSION
18
16
ADD ./common/install_base.sh install_base.sh
19
17
RUN bash ./install_base.sh && rm install_base.sh
18
+
19
+ # Setup ccache env variables
20
20
ENV PATH /usr/local/bin/ccache:$PATH
21
21
ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
22
22
ENV PATH /usr/local/cuda/bin:$PATH
You can’t perform that action at this time.
0 commit comments