File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ RUN conda config --add channels nvidia && \
90
90
# b/232247930: uninstall pyarrow to avoid double installation with the GPU specific version.
91
91
RUN pip uninstall -y pyarrow && \
92
92
conda install -c conda-forge mamba && \
93
- mamba install cudf cuml cudatoolkit && \
93
+ mamba install -y cudf cuml cudatoolkit && \
94
94
/tmp/clean-layer.sh
95
95
{{ end }}
96
96
@@ -108,6 +108,13 @@ RUN conda install implicit && \
108
108
COPY --from=torch_whl /tmp/whl/*.whl /tmp/torch/
109
109
RUN conda install -c pytorch magma-cuda${CUDA_MAJOR_VERSION}${CUDA_MINOR_VERSION} && \
110
110
pip install /tmp/torch/*.whl && \
111
+ # b/255757999 openmp (libomp.so) is an dependency of libtorchtext and libtorchaudio but
112
+ # the built from source versions don't seem to properly link it in. This forces the dep
113
+ # which makes sure that libomp is loaded when these libraries are loaded.
114
+ conda install -y openmp && \
115
+ pip install patchelf && \
116
+ patchelf --add-needed libomp.so.5 /opt/conda/lib/python3.7/site-packages/torchtext/lib/libtorchtext.so && \
117
+ patchelf --add-needed libomp.so.5 /opt/conda/lib/python3.7/site-packages/torchaudio/lib/libtorchaudio.so && \
111
118
rm -rf /tmp/torch && \
112
119
/tmp/clean-layer.sh
113
120
{{ else }}
You can’t perform that action at this time.
0 commit comments