Skip to content

Commit 85e1c42

Browse files
authored
LIBRARY_PATH & LD_LIBRARY_PATH for linking
1 parent 855fe8f commit 85e1c42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/torch.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ENV PYTORCH_BUILD_NUMBER=1
2323

2424
# Ensures shared libraries installed with conda can be found by the dynamic link loader.
2525
# For PyTorch, we need specifically mkl.
26+
ENV LIBRARY_PATH="$LIBRARY_PATH:/opt/conda/lib"
2627
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/conda/lib"
2728
ENV TORCH_CUDA_ARCH_LIST="3.7;6.0;7.0+PTX;7.5+PTX"
2829
ENV FORCE_CUDA=1
@@ -82,4 +83,4 @@ COPY --from=builder /usr/local/src/text/dist/*.whl /tmp/whl
8283
COPY --from=builder /usr/local/src/vision/dist/*.whl /tmp/whl
8384

8485
# Print out the built .whl file.
85-
RUN ls -lh /tmp/whl/
86+
RUN ls -lh /tmp/whl/

0 commit comments

Comments
 (0)