Skip to content

Commit

Permalink
Try using nvidias image diretly
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasReutelsterz committed Jul 9, 2024
1 parent a639f09 commit ede762d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Use Ubuntu 24.04 as the base image
FROM ubuntu:24.04
# FROM ubuntu:24.04
FROM nvidia/cuda:12.5.0-base-ubuntu22.04
ENV TZ=UTC

# Install necessary packages
Expand Down Expand Up @@ -40,13 +41,6 @@ RUN apt-get update -y && apt-get upgrade -y && \
libopenblas-dev && \
rm -rf /var/lib/apt/lists/*

# Install CUDA
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring.gpg && \
mv cuda-keyring.gpg /usr/share/keyrings/ && \
echo "deb [signed-by=/usr/share/keyrings/cuda-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" > /etc/apt/sources.list.d/cuda.list && \
echo "deb [signed-by=/usr/share/keyrings/cuda-keyring.gpg] https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/ /" > /etc/apt/sources.list.d/nvidia-ml.list
RUN apt-get update && apt-get install -y --no-install-recommends cuda-toolkit-11-2


# Clone and install libxsmm
RUN git clone https://github.com/hfp/libxsmm.git && \
Expand Down

0 comments on commit ede762d

Please sign in to comment.