Skip to content

Commit

Permalink
Merge pull request #135 from iot-salzburg/v1.6_cuda-12.0_ubuntu-22.04
Browse files Browse the repository at this point in the history
Pin cuda-nvcc version in V1.6 cuda 12.0 ubuntu 22.04
  • Loading branch information
ChristophSchranz authored Jan 16, 2024
2 parents ea2c3f0 + 49dff9a commit a6608b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,17 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends cmake libncurses5-dev libncursesw5-dev git && \
apt-get clean && rm -rf /var/lib/apt/lists/*

USER $NB_UID
# These need to be two separate pip install commands, otherwise it will throw an error
# attempting to resolve the nvidia-cuda-nvcc package at the same time as nvidia-pyindex
RUN pip install --no-cache-dir nvidia-pyindex && \
pip install --no-cache-dir nvidia-cuda-nvcc && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# reinstall nvcc with cuda-nvcc to install ptax
USER $NB_UID
RUN mamba install -c nvidia cuda-nvcc -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
Expand Down
10 changes: 9 additions & 1 deletion custom/gpulibs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,17 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends cmake libncurses5-dev libncursesw5-dev git && \
apt-get clean && rm -rf /var/lib/apt/lists/*

USER $NB_UID
# These need to be two separate pip install commands, otherwise it will throw an error
# attempting to resolve the nvidia-cuda-nvcc package at the same time as nvidia-pyindex
RUN pip install --no-cache-dir nvidia-pyindex && \
pip install --no-cache-dir nvidia-cuda-nvcc && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# reinstall nvcc with cuda-nvcc to install ptax
USER $NB_UID
RUN mamba install -c nvidia cuda-nvcc -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
Expand Down

0 comments on commit a6608b5

Please sign in to comment.