mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Dockerfile; Add cuda bin to PATH (#117105)
We need this to execute `nvidia-smi` in the officially released containers. We have already it in the Docker CI
See
94db6578cc/.ci/docker/linter-cuda/Dockerfile (L35)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/117105
Approved by: https://github.com/atalman
This commit is contained in:
@ -99,6 +99,7 @@ ENV PATH /opt/conda/bin:$PATH
|
|||||||
ENV NVIDIA_VISIBLE_DEVICES all
|
ENV NVIDIA_VISIBLE_DEVICES all
|
||||||
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
|
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
|
||||||
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
|
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
|
||||||
|
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
|
||||||
ENV PYTORCH_VERSION ${PYTORCH_VERSION}
|
ENV PYTORCH_VERSION ${PYTORCH_VERSION}
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user