Skip to content

Commit bbf8424

Browse files
authored
Merge pull request #1288 from Kaggle/psbang-implicit
Delete implicit in dockerfile
2 parents 8e15dd3 + 53b195c commit bbf8424

File tree

2 files changed

+7
-48
lines changed

2 files changed

+7
-48
lines changed

Dockerfile.tmpl

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ RUN pip uninstall -y pyarrow && \
107107
/tmp/clean-layer.sh
108108
{{ end }}
109109

110-
# Install implicit
111-
{{ if eq .Accelerator "gpu" }}
112-
RUN mamba install -y implicit implicit-proc=*=gpu && \
113-
/tmp/clean-layer.sh
114-
{{ else }}
115-
RUN mamba install -y implicit && \
116-
/tmp/clean-layer.sh
117-
{{ end}}
118-
119110
# Install PyTorch
120111
{{ if eq .Accelerator "gpu" }}
121112
COPY --from=torch_whl /tmp/whl/*.whl /tmp/torch/
@@ -172,7 +163,9 @@ RUN pip install spacy && \
172163
{{ if eq .Accelerator "gpu" }}
173164
# Install GPU-only packages
174165
# No specific package for nnabla-ext-cuda 11.x minor versions.
175-
RUN pip install pycuda \
166+
RUN export PATH=/usr/local/cuda/bin:$PATH && \
167+
export CUDA_ROOT=/usr/local/cuda && \
168+
pip install pycuda \
176169
pynvrtc \
177170
pynvml && \
178171
/tmp/clean-layer.sh
@@ -650,7 +643,11 @@ RUN sed -i '/from tensorflow_hub import uncompressed_module_resolver/a from tens
650643
# python -m nb_conda_kernels.install --disable
651644

652645
# Force only one libcusolver
646+
{{ if eq .Accelerator "gpu" }}
653647
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
648+
{{ else }}
649+
RUN ln -s /usr/local/cuda/lib64/libcusolver.so.11 /opt/conda/bin/../lib/libcusolver.so.11
650+
{{ end }}
654651

655652
# b/270147159 conda ships with a version of libtinfo which is missing version info causing warnings, replace it with a good version.
656653
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

tests/test_implicit.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)