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:
parent
9e3580f793
commit
5bc896e5dc
|
@ -99,6 +99,7 @@ ENV PATH /opt/conda/bin:$PATH
|
|||
ENV NVIDIA_VISIBLE_DEVICES all
|
||||
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
|
||||
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}
|
||||
WORKDIR /workspace
|
||||
|
||||
|
|
Loading…
Reference in New Issue