Skip to content

Commit

Permalink
Add Cuda to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasReutelsterz committed Jul 9, 2024
1 parent 7b28ec2 commit a639f09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install -y software-prope
python3.11 python3-pip cxxtest libeigen3-dev && \
rm -rf /var/lib/apt/lists/*

# Install OpenBLAS
RUN apt-get update -y && apt-get upgrade -y && \
apt-get install -y --no-install-recommends --fix-missing \
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 && \
cd libxsmm && \
Expand Down

0 comments on commit a639f09

Please sign in to comment.