@@ -74,7 +74,7 @@ RUN pip uninstall -y horovod && \
74
74
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
75
75
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
76
76
77
- # Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
77
+ # Use a fixed repo to stop intermittent failures due to flaky httpredir connections,
78
78
# as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
79
79
RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \
80
80
apt-get update && \
@@ -163,7 +163,9 @@ RUN pip install spacy && \
163
163
{{ if eq .Accelerator "gpu" }}
164
164
# Install GPU-only packages
165
165
# No specific package for nnabla-ext-cuda 11.x minor versions.
166
- RUN pip install pycuda \
166
+ RUN export PATH=/usr/local/cuda/bin:$PATH && \
167
+ export CUDA_ROOT=/usr/local/cuda && \
168
+ pip install pycuda \
167
169
pynvrtc \
168
170
pynvml && \
169
171
/tmp/clean-layer.sh
@@ -637,7 +639,11 @@ RUN sed -i '/from tensorflow_hub import uncompressed_module_resolver/a from tens
637
639
# python -m nb_conda_kernels.install --disable
638
640
639
641
# Force only one libcusolver
642
+ {{ if eq .Accelerator "gpu" }}
640
643
RUN rm /opt/conda/bin/../lib/libcusolver.so.11 && ln -s /usr/local/cuda/lib64/libcusolver.so.11 /opt/conda/bin/../lib/libcusolver.so.11
644
+ {{ else }}
645
+ RUN ln -s /usr/local/cuda/lib64/libcusolver.so.11 /opt/conda/bin/../lib/libcusolver.so.11
646
+ {{ end }}
641
647
642
648
# b/270147159 conda ships with a version of libtinfo which is missing version info causing warnings, replace it with a good version.
643
649
RUN rm /opt/conda/lib/libtinfo.so.6 && ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /opt/conda/lib/libtinfo.so.6
0 commit comments