FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove CUDA stubs at the end of the GPU build · JasonYangCode/docker-python@01dcc9d · GitHub

Commit 01dcc9d

Browse files
committed
Remove CUDA stubs at the end of the GPU build
1 parent 4126b95 commit 01dcc9d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎gpu.Dockerfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
2828
# CUDA user libraries, either manually or through the use of nvidia-docker) exclude them. One
2929
# convenient way to do so is to obscure its contents by a bind mount:
3030
# docker run .... -v /non-existing-directory:/usr/local/cuda/lib64/stubs:ro ...
31+
ENV LD_LIBRARY_PATH_NO_STUBS="/usr/local/nvidia/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
3132
ENV LD_LIBRARY_PATH="/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
3233
ENV NVIDIA_VISIBLE_DEVICES=all
3334
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
@@ -101,3 +102,6 @@ RUN pip install pycuda && \
101102
# Re-add TensorBoard Jupyter extension patch
102103
# b/139212522 re-enable TensorBoard once solution for slowdown is implemented.
103104
# ADD patches/tensorboard/notebook.py /opt/conda/lib/python3.7/site-packages/tensorboard/notebook.py
105+
106+
# Remove the CUDA stubs.
107+
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH_NO_STUBS"

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL