File tree 4 files changed +17
-2
lines changed
4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,8 @@ RUN pip install --no-cache-dir --extra-index-url=https://pypi.nvidia.com --index
23
23
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#dockerfiles
24
24
ENV NVIDIA_VISIBLE_DEVICES all
25
25
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
26
+
27
+ # Puts the nvidia-smi binary (system management interface) on path
28
+ # with associated library files to execute it
29
+ ENV PATH=${PATH}:/usr/local/nvidia/bin
30
+ ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nvidia/lib64
Original file line number Diff line number Diff line change @@ -23,3 +23,8 @@ RUN pip install --no-cache-dir --extra-index-url=https://pypi.nvidia.com --index
23
23
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#dockerfiles
24
24
ENV NVIDIA_VISIBLE_DEVICES all
25
25
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
26
+
27
+ # Puts the nvidia-smi binary (system management interface) on path
28
+ # with associated library files to execute it
29
+ ENV PATH=${PATH}:/usr/local/nvidia/bin
30
+ ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nvidia/lib64
Original file line number Diff line number Diff line change @@ -25,3 +25,8 @@ COPY --chown="${NB_UID}:${NB_GID}" nvidia-lib-dirs.sh "${CONDA_DIR}/etc/conda/ac
25
25
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#dockerfiles
26
26
ENV NVIDIA_VISIBLE_DEVICES="all" \
27
27
NVIDIA_DRIVER_CAPABILITIES="compute,utility"
28
+
29
+ # Puts the nvidia-smi binary (system management interface) on path
30
+ # with associated library files to execute it
31
+ ENV PATH=${PATH}:/usr/local/nvidia/bin
32
+ ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nvidia/lib64
Original file line number Diff line number Diff line change 2
2
# Copyright (c) Jupyter Development Team.
3
3
# Distributed under the terms of the Modified BSD License.
4
4
5
- # This adds the NVIDIA libraries to the LD_LIBRARY_PATH. Workaround for
6
- # https://github.com/tensorflow/tensorflow/issues/63362
5
+ # This adds NVIDIA Python package libraries to the LD_LIBRARY_PATH.
6
+ # Workaround for https://github.com/tensorflow/tensorflow/issues/63362
7
7
NVIDIA_DIR=$( dirname " $( python -c ' import nvidia;print(nvidia.__file__)' ) " )
8
8
LD_LIBRARY_PATH=$( echo " ${NVIDIA_DIR} " /* /lib/ | sed -r ' s/\s+/:/g' ) ${LD_LIBRARY_PATH: +: ${LD_LIBRARY_PATH} }
9
9
export LD_LIBRARY_PATH
You can’t perform that action at this time.
0 commit comments