Skip to content

Commit

Permalink
Add /opt/bin to GPU image PATH env variable (#1089)
Browse files Browse the repository at this point in the history
NVIDIA binaries from the host are mounted to /opt/bin.

This is how `nvidia-smi` is made accessible inside the user session docker container. See attached bugs for additional context.

b/202852505
  • Loading branch information
rosbo authored Oct 12, 2021
1 parent 0b9588d commit a4cc4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ FROM gcr.io/kaggle-images/python-torch-whl:${GPU_BASE_IMAGE_NAME}-${BASE_IMAGE_T
FROM ${BASE_IMAGE_REPO}/${GPU_BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
ENV CUDA_MAJOR_VERSION=11
ENV CUDA_MINOR_VERSION=0
# NVIDIA binaries from the host are mounted to /opt/bin.
ENV PATH=/opt/bin:${PATH}
{{ else }}
FROM ${BASE_IMAGE_REPO}/${CPU_BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
{{ end }}
Expand Down

0 comments on commit a4cc4b4

Please sign in to comment.