Skip to content

Commit

Permalink
Fix Ubuntu 24.04 CUDA environment variables (#125)
Browse files Browse the repository at this point in the history
I forgot to set these correctly after the last update.
  • Loading branch information
stephenswat authored Oct 30, 2024
1 parent 70aa794 commit 9db319d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions ubuntu2404_cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ RUN apt-get update && \
cuda-minimal-build-${CUDA_VERSION} && \
apt-get clean -y

ENV CUDA_PATH "${CUDA_INSTALL_PATH}"
ENV CUDA_ROOT "${CUDA_INSTALL_PATH}"
ENV CUDA_HOME "${CUDA_INSTALL_PATH}"
ENV CUDACXX "${CUDA_INSTALL_PATH}/bin/nvcc"
ENV CUDACC "${CUDA_INSTALL_PATH}/bin/nvcc"

ENV PATH "${CUDA_INSTALL_PATH}/bin:${PATH}"
ENV MANPATH "${CUDA_INSTALL_PATH}/share/man:${MANPATH}"
ENV INCLUDE "${CUDA_INSTALL_PATH}/include:${INCLUDE}"
ENV LD_LIBRARY_PATH "${CUDA_INSTALL_PATH}/lib64:${CUDA_INSTALL_PATH}/lib:${LD_LIBRARY_PATH}"
ENV CUDA_PATH "/usr/local/cuda/"
ENV CUDA_ROOT "${CUDA_PATH}"
ENV CUDA_HOME "${CUDA_PATH}"
ENV CUDACXX "${CUDA_PATH}/bin/nvcc"
ENV CUDACC "${CUDA_PATH}/bin/nvcc"
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ENV PATH "${CUDA_PATH}/bin:${PATH}"
ENV LD_LIBRARY_PATH "${CUDA_PATH}/lib64:${LD_LIBRARY_PATH}"

0 comments on commit 9db319d

Please sign in to comment.