Skip to content

Commit

Permalink
add nvidia-cuda-toolkit to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
monofuel committed Sep 2, 2024
1 parent 310b0e6 commit b3206a5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
FROM ubuntu:22.04

RUN apt update && apt install -y git gdb gcc g++ make libtbb2 libtbb2-dev && apt clean
RUN apt update && apt install -y git gdb gcc g++ make libtbb2 libtbb2-dev nvidia-cuda-toolkit && apt clean

# sudo wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
# echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.1 jammy main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
# echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
# sudo apt-get update
# # rocm takes up too much space for github ci runner
# #sudo apt-get install -y hipcc rocm nvidia-cuda-toolkit
# sudo apt-get install -y hipcc rocm-device-libs rocm-hip-runtime nvidia-cuda-toolkit
# echo "/opt/rocm/bin" >> $GITHUB_PATH
# echo "/usr/local/cuda/bin" >> $GITHUB_PATH


RUN git clone --branch devel https://github.com/nim-lang/Nim.git --depth 1 /opt/Nim

Expand All @@ -13,4 +24,4 @@ RUN ./koch tools

RUN mkdir -p /root/.nimble/bin

ENV PATH="/opt/Nim/bin/:/root/.nimble/bin:${PATH}"
ENV PATH="/opt/Nim/bin/:/root/.nimble/bin:/usr/local/cuda/bin:${PATH}"

0 comments on commit b3206a5

Please sign in to comment.