From b4e021af0ef0c59ce8a410df6e948b8887b8630f Mon Sep 17 00:00:00 2001 From: Christoph Schranz Date: Wed, 24 Jan 2024 14:58:16 +0100 Subject: [PATCH] set cuda 12.0 --- .build/Dockerfile | 70 ++--------------------------------------------- README.md | 2 +- 2 files changed, 3 insertions(+), 69 deletions(-) diff --git a/.build/Dockerfile b/.build/Dockerfile index 76357fa..6f137e7 100755 --- a/.build/Dockerfile +++ b/.build/Dockerfile @@ -7,7 +7,7 @@ # Use NVIDIA CUDA as base image and run the same installation as in the other packages. # The version of cuda must match those of the packages installed in src/Dockerfile.gpulibs -FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 +FROM nvidia/cuda:12.0.1-cudnn8-runtime-ubuntu22.04 LABEL authors="Christoph Schranz , Mathematical Michael " # This is a concatenated Dockerfile, the maintainers of subsequent sections may vary. RUN chmod 1777 /tmp && chmod 1777 /var/tmp @@ -377,72 +377,6 @@ USER ${NB_UID} WORKDIR "${HOME}" - ############################################################################ - ################ Dependency: jupyter/datascience-notebook ################## - ############################################################################ - -# Copyright (c) Jupyter Development Team. -# Distributed under the terms of the Modified BSD License. -ARG REGISTRY=quay.io -ARG OWNER=jupyter - -LABEL maintainer="Jupyter Project " - -# Fix: https://github.com/hadolint/hadolint/wiki/DL4006 -# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014 -SHELL ["/bin/bash", "-o", "pipefail", "-c"] - -USER root - -# R pre-requisites -RUN apt-get update --yes && \ - apt-get install --yes --no-install-recommends \ - fonts-dejavu \ - gfortran \ - gcc && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - -# Julia dependencies -# install Julia packages in /opt/julia instead of ${HOME} -ENV JULIA_DEPOT_PATH=/opt/julia \ - JULIA_PKGDIR=/opt/julia - -# Setup Julia -RUN /opt/setup-scripts/setup_julia.py - -USER ${NB_UID} - -# Setup IJulia kernel & other packages -RUN /opt/setup-scripts/setup-julia-packages.bash - -# R packages including IRKernel which gets installed globally. -# r-e1071: dependency of the caret R package -RUN mamba install --yes \ - 'r-base' \ - 'r-caret' \ - 'r-crayon' \ - 'r-devtools' \ - 'r-e1071' \ - 'r-forecast' \ - 'r-hexbin' \ - 'r-htmltools' \ - 'r-htmlwidgets' \ - 'r-irkernel' \ - 'r-nycflights13' \ - 'r-randomforest' \ - 'r-rcurl' \ - 'r-rmarkdown' \ - 'r-rodbc' \ - 'r-rsqlite' \ - 'r-shiny' \ - 'r-tidymodels' \ - 'r-tidyverse' \ - 'rpy2' \ - 'unixodbc' && \ - mamba clean --all -f -y && \ - fix-permissions "${CONDA_DIR}" && \ - fix-permissions "/home/${NB_USER}" - ############################################################################ ########################## Dependency: gpulibs ############################# ############################################################################ @@ -507,7 +441,7 @@ RUN pip install --no-cache-dir nvidia-pyindex && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" -RUN mamba install -c nvidia cuda-nvcc=11.8.89 -y && \ +RUN mamba install -c nvidia cuda-nvcc=12.0.140 -y && \ mamba clean --all -f -y && \ fix-permissions $CONDA_DIR && \ fix-permissions /home/$NB_USER diff --git a/README.md b/README.md index 803e329..752fc9e 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Additionally, data within the host's `data` directory is shared with the contain - `v1.6_cuda-11.8_ubuntu-22.04_slim` (only with a python interpreter and without additional packages)
- Older images + Older images - `v1.5_cuda-12.0_ubuntu-22.04` (full image) - `v1.5_cuda-12.0_ubuntu-22.04_python-only` (only with a python interpreter and without Julia and R)