Skip to content

Commit 5c74218

Browse files
committed
conda 4.10.1
1 parent 9f4a6ea commit 5c74218

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

python-pytorchlightning/Dockerfile.1.7-py38-cuda11.1 renamed to python-pytorchlightning/Dockerfile.1.7-py38-cuda11.0

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ARG CUDNN_VERSION=8
2-
ARG CUDA_VERSION=11.1
3-
2+
ARG CUDA_VERSION=11.0
3+
ARG CUDA=11
44
# FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu20.04
55
FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu18.04
66
# FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
77

88
ARG PYTHON_VERSION=3.8
9-
ARG PYTORCH_VERSION=1.7
10-
ARG CONDA_VERSION=4.9.2
9+
ARG PYTORCH_VERSION=1.7.1
10+
ARG CONDA_VERSION=4.10.1
1111

1212
SHELL ["/bin/bash", "-c"]
1313

14-
ENV PATH="$PATH:/root/.local/bin"
14+
#ENV PATH="$PATH:/root/.local/bin"
1515

1616
WORKDIR /opt
1717
RUN apt-get update -qq && \
@@ -28,9 +28,9 @@ RUN apt-get update -qq && \
2828

2929
# Install conda and python.
3030
# NOTE new Conda does not forward the exit status... https://github.com/conda/conda/issues/8385
31-
32-
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_${CONDA_VERSION}-Linux-x86_64.sh -O miniconda.sh && \
31+
3332
mkdir -p /opt && \
33+
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_${CONDA_VERSION}-Linux-x86_64.sh -O miniconda.sh && \
3434
sh miniconda.sh -b -p /opt/conda && \
3535
rm miniconda.sh && \
3636
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
@@ -54,8 +54,8 @@ RUN apt-get update -qq && \
5454
rm -rf /var/lib/apt/lists/*
5555

5656
ENV \
57-
LD_LIBRARY_PATH="/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/include/x86_64-linux-gnu:/opt/miniconda3/lib" \
58-
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/bin/cmake/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/tensorrt/bin:/opt/miniconda3/bin:$PATH" \
57+
LD_LIBRARY_PATH="/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/include/x86_64-linux-gnu:/opt/conda/lib" \
58+
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/bin/cmake/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/tensorrt/bin:/opt/conda/bin" \
5959
CUDA_TOOLKIT_ROOT_DIR="/usr/local/cuda" \
6060
DEBIAN_FRONTEND=noninteractive \
6161
MPLBACKEND=Svg \
@@ -78,7 +78,7 @@ ENV \
7878
COPY environment.yml environment.yml
7979

8080
# conda init
81-
RUN conda create -y --name $CONDA_ENV python=${PYTHON_VERSION} pytorch=${PYTORCH_VERSION} cudatoolkit=${CUDA_VERSION} -c pytorch -c pytorch-test -c pytorch-nightly && \
81+
RUN conda create -y --name $CONDA_ENV python=${PYTHON_VERSION} pytorch=${PYTORCH_VERSION} cudatoolkit=${CUDA} -c pytorch -c pytorch-test -c pytorch-nightly && \
8282
conda init bash && \
8383
# NOTE: this requires that the channel is presented in the yaml before packages
8484
# replace channel to nigtly if needed, fix PT version and remove Horovod as it will be installed later

0 commit comments

Comments
 (0)