Skip to content

Commit

Permalink
chore: update cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar committed Oct 16, 2020
1 parent b92a04b commit 1596e8d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_push_to_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
matrix:
EXTENSIONS:
- cuda9.2
- cuda10.0-tf
- cuda-tf
- julia1.3.1

steps:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ py:
-t $(DOCKER_PREFIX)-$@:$(DOCKER_LABEL) . && \
docker tag $(DOCKER_PREFIX)-$@:$(DOCKER_LABEL) $(DOCKER_PREFIX)-$@:$(GIT_MASTER_HEAD_SHA)

cuda10: py
docker build docker/cuda10.0-tf \
cuda: py
docker build docker/cuda-tf \
--build-arg RENKU_PIP_SPEC=$(RENKU_PIP_SPEC) \
--build-arg RENKU_BASE=renku/renkulab-py:$(GIT_MASTER_HEAD_SHA) \
--build-arg TENSORFLOW_VERSION=$(TENSORFLOW_VERSION) \
-t $(DOCKER_PREFIX)-cuda10.0-tf:$(DOCKER_LABEL) && \
docker tag $(DOCKER_PREFIX)-cuda10.0-tf:$(DOCKER_LABEL) $(DOCKER_PREFIX)-cuda10.0-tf:$(GIT_MASTER_HEAD_SHA)
-t $(DOCKER_PREFIX)-cuda-tf:$(DOCKER_LABEL) && \
docker tag $(DOCKER_PREFIX)-cuda-tf:$(DOCKER_LABEL) $(DOCKER_PREFIX)-cuda-tf:$(GIT_MASTER_HEAD_SHA)
29 changes: 13 additions & 16 deletions docker/cuda10.0-tf/Dockerfile → docker/cuda-tf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-
apt-get purge --autoremove -y curl && \
rm -rf /var/lib/apt/lists/*

ENV CUDA_VERSION 10.0.130
ENV CUDA_PKG_VERSION 10-0=$CUDA_VERSION-1
ENV CUDA_VERSION 10.1.243
ENV CUDA_PKG_VERSION 10-1=$CUDA_VERSION-1

# For libraries in the cuda-compat-* package: https://docs.nvidia.com/cuda/eula/index.html#attachment-a
RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-cudart-$CUDA_PKG_VERSION \
cuda-compat-10-0 && \
ln -s cuda-10.0 /usr/local/cuda && \
cuda-compat-10-1 && \
ln -s cuda-10.1 /usr/local/cuda && \
rm -rf /var/lib/apt/lists/*

# Required for nvidia-docker v1
Expand All @@ -37,37 +37,34 @@ ENV NVIDIA_REQUIRE_CUDA "cuda>=10.0"

RUN apt-get update && apt-get install -y --no-install-recommends apt-utils

## cuda runtime
## https://gitlab.com/nvidia/container-images/cuda/blob/ubuntu18.04/10.0/runtime
ENV NCCL_VERSION 2.4.2
## cuda runtime, devel and cudnn
## see https://gitlab.com/nvidia/container-images/cuda/-/tree/master/dist/10.1/ubuntu18.04-x86_64

ENV NCCL_VERSION 2.7.8
RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-libraries-$CUDA_PKG_VERSION \
cuda-nvtx-$CUDA_PKG_VERSION \
libnccl2=$NCCL_VERSION-1+cuda10.0 && \
libnccl2=$NCCL_VERSION-1+cuda10.1 && \
apt-mark hold libnccl2 && \
rm -rf /var/lib/apt/lists/*

## cuda devel
## https://gitlab.com/nvidia/container-images/cuda/blob/ubuntu18.04/10.0/devel

RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-libraries-dev-$CUDA_PKG_VERSION \
cuda-nvml-dev-$CUDA_PKG_VERSION \
cuda-minimal-build-$CUDA_PKG_VERSION \
cuda-command-line-tools-$CUDA_PKG_VERSION \
libnccl-dev=$NCCL_VERSION-1+cuda10.0 && \
libnccl-dev=$NCCL_VERSION-1+cuda10.1 && \
rm -rf /var/lib/apt/lists/*

ENV LIBRARY_PATH /usr/local/cuda/lib64/stubs


## CUDNN 7
## https://gitlab.com/nvidia/container-images/cuda/blob/ubuntu18.04/10.0/devel/cudnn7
ENV CUDNN_VERSION 7.6.0.64
ENV CUDNN_VERSION 7.6.5.32

RUN apt-get update && apt-get install -y --no-install-recommends \
libcudnn7=$CUDNN_VERSION-1+cuda10.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda10.0 && \
libcudnn7=$CUDNN_VERSION-1+cuda10.1 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda10.1 && \
apt-mark hold libcudnn7 && \
rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion docker/py/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ papermill==2.1.3
requests>=2.20.0
jupyterhub==1.1.0
nbresuse==0.3.6
jupyterlab-git==0.20.0
jupyterlab-git==0.22.1
pipx>=0.15.0.0
powerline-shell==0.7.0

0 comments on commit 1596e8d

Please sign in to comment.