File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ ARG TORCHAUDIO_VERSION
8
8
ARG TORCHTEXT_VERSION
9
9
ARG TORCHVISION_VERSION
10
10
11
+ # Ensures shared libraries installed with conda can be found by the dynamic link loader.
12
+ ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/conda/lib"
13
+
11
14
{{ if eq .Accelerator "gpu" }}
12
15
FROM gcr.io/kaggle-images/python-lightgbm-whl:${GPU_BASE_IMAGE_NAME}-${BASE_IMAGE_TAG}-${LIGHTGBM_VERSION} AS lightgbm_whl
13
16
FROM gcr.io/kaggle-images/python-torch-whl:${GPU_BASE_IMAGE_NAME}-${BASE_IMAGE_TAG}-${TORCH_VERSION} AS torch_whl
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ RUN conda install -c pytorch magma-cuda${CUDA_MAJOR_VERSION}${CUDA_MINOR_VERSION
21
21
ENV PYTORCH_BUILD_VERSION=$PACKAGE_VERSION
22
22
ENV PYTORCH_BUILD_NUMBER=1
23
23
24
+ # Ensures shared libraries installed with conda can be found by the dynamic link loader.
25
+ # For PyTorch, we need specifically mkl.
26
+ ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/conda/lib"
24
27
ENV TORCH_CUDA_ARCH_LIST="3.7;6.0;7.0+PTX;7.5+PTX"
25
28
ENV FORCE_CUDA=1
26
29
RUN cd /usr/local/src && \
You can’t perform that action at this time.
0 commit comments