Skip to content

Commit cfaa00b

Browse files
committed
fix(docker): resolves undefined symbol error
1 parent 6929b22 commit cfaa00b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docker/pytorch_base/Dockerfile.prebuilt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ENV NVIDIA_VISIBLE_DEVICES=all
1414
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
1515
ENV NVIDIA_REQUIRE_CUDA="cuda>=$CUDA_VERSION"
1616

17-
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda-${CUDA_VERSION}/bin:/opt/conda/bin:${PATH}
18-
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
17+
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda-${CUDA_VERSION}/bin:/opt/conda/bin:${PATH}
18+
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
1919
ENV DEBIAN_FRONTEND=noninteractive
2020

2121
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
@@ -31,8 +31,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
3131
&& rm ~/miniconda.sh \
3232
&& /opt/conda/bin/conda install -y python=${PYTHON_VERSION} \
3333
&& /opt/conda/bin/conda clean -ya \
34-
&& /opt/conda/bin/pip install torch==${TORCH_VERSION} torchvision==${TORCHVISION_VERSION} --index-url https://download.pytorch.org/whl/cu$(echo $CUDA_VERSION | tr -d .) \
35-
&& /opt/conda/bin/pip install tensorrt torch-tensorrt==${TORCH_TENSORRT_VERSION} -f https://github.com/NVIDIA/Torch-TensorRT/releases \
34+
&& /opt/conda/bin/pip install torch==${TORCH_VERSION} torchvision==${TORCHVISION_VERSION} \
35+
tensorrt torch-tensorrt==${TORCH_TENSORRT_VERSION} --extra-index-url https://download.pytorch.org/whl/cu$(echo $CUDA_VERSION | tr -d .) \
36+
# && /opt/conda/bin/pip install tensorrt torch-tensorrt==${TORCH_TENSORRT_VERSION} -f https://github.com/NVIDIA/Torch-TensorRT/releases \
3637
&& apt-mark auto '.*' > /dev/null \
3738
&& apt-mark manual $preexistingAptMark ca-certificates > /dev/null \
3839
&& find /usr/local/lib /opt/conda -type f -executable -exec ldd '{}' ';' \

0 commit comments

Comments
 (0)