Skip to content

Commit

Permalink
install the same version of cuda as new worker image
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Jan 13, 2025
1 parent e0755ba commit 7792ffc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions taskcluster/docker/train/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ RUN apt-get update -qq \
software-properties-common \
&& apt-get clean

RUN curl -L https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin > /tmp/cuda.pin \
&& mv /tmp/cuda.pin /etc/apt/preferences.d/cuda-repository-pin-600 \
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub \
&& add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /" \
# Install the same cuda version that the worker host uses
# See https://github.com/mozilla-platform-ops/worker-images/blob/main/scripts/linux/ubuntu-2404-amd64-headless/fxci/05-nvidia-gcp-driver-cudnn.sh
RUN curl -sSO https://developer.download.nvidia.com/compute/cudnn/9.5.1/local_installers/cudnn-local-repo-ubuntu2404-9.5.1_1.0-1_amd64.deb \
&& dpkg -i cudnn-local-repo-ubuntu2404-9.5.1_1.0-1_amd64.deb \
&& cp /var/cudnn-local-repo-ubuntu2404-9.5.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
&& apt-get update -qq \
&& apt-get install -y cudnn9-cuda-12 \
libcudnn9-dev-cuda-12 \
&& apt-get clean

&& apt-get install -y cudnn

VOLUME /builds/worker/checkouts
VOLUME /builds/worker/.cache

0 comments on commit 7792ffc

Please sign in to comment.