Skip to content

Commit

Permalink
install cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Dec 19, 2024
1 parent 6d4d68a commit ea4c6ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions taskcluster/docker/train/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM $DOCKER_IMAGE_PARENT
LABEL maintainer="Mozilla Release Engineering <release+docker@mozilla.com>"

RUN curl -L https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb > /tmp/cuda-keyring.deb \
&& dpkg -i /tmp/cuda-keyring.deb \
&& rm /tmp/cuda-keyring.deb

RUN apt-get update -qq \
&& apt-get install -y python3-numpy \
python3-fasttext \
Expand All @@ -14,6 +18,17 @@ RUN apt-get update -qq \
pigz \
curl \
wget \
cuda-toolkit \
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/ /" \
&& apt-get update -qq \
&& apt-get install -y cudnn9-cuda-12 \
libcudnn9-dev-cuda-12 \
&& apt-get clean


Expand Down

0 comments on commit ea4c6ae

Please sign in to comment.