Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ubuntu 24.04 CUDA environment variables #125

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"