Skip to content

Commit 5504c57

Browse files
committed
support intel python
1 parent f57f5bc commit 5504c57

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

commons/Dockerfile.base.py38-cuda11.2

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ WORKDIR /tmp
3636
RUN apt-get update -y && \
3737
apt-get install -y --no-install-recommends software-properties-common wget curl && \
3838
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
39+
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null && \
40+
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list && \
3941
add-apt-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
4042
add-apt-repository -y ppa:deadsnakes/ppa && \
4143
add-apt-repository -y ppa:bashtop-monitor/bashtop && \
@@ -199,7 +201,7 @@ RUN apt-get update -y && \
199201
/opt/conda/bin/conda config --add channels intel && \
200202
/opt/conda/bin/conda config --add envs_dirs /home/work/.conda && \
201203
/opt/conda/bin/conda update --prefix /opt/conda conda && \
202-
/opt/conda/bin/conda install -c intel intelpython3_core blas=*=*mkl
204+
/opt/conda/bin/conda install -c intel intelpython3_core blas=*=*mkl
203205

204206
# OFED
205207
WORKDIR /tmp
@@ -349,14 +351,6 @@ RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
349351
make -j$(nproc) && \
350352
make install
351353

352-
RUN python3 -m pip install --extra-index-url \
353-
https://developer.download.nvidia.com/compute/redist \
354-
--upgrade nvidia-dali-cuda110 \
355-
&& \
356-
python3 -m pip install --extra-index-url \
357-
https://developer.download.nvidia.com/compute/redist \
358-
--upgrade nvidia-dali-tf-plugin-cuda110
359-
360354
# Install Open MPI
361355
RUN mkdir /tmp/openmpi && \
362356
cd /tmp/openmpi && \
@@ -390,6 +384,14 @@ COPY ./requirements.22.06.txt /tmp/requirements.txt
390384
RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
391385
rm -f /tmp/*.whl /tmp/requirements.txt
392386

387+
RUN python3 -m pip install --extra-index-url \
388+
https://developer.download.nvidia.com/compute/redist \
389+
--upgrade nvidia-dali-cuda110 \
390+
&& \
391+
python3 -m pip install --extra-index-url \
392+
https://developer.download.nvidia.com/compute/redist \
393+
--upgrade nvidia-dali-tf-plugin-cuda110
394+
393395
RUN CUDA_ROOT=/usr/local/cuda python3 -m pip install mpi4jax scikit-nni==0.2.1 mlflow==1.12.1 nni==1.9
394396

395397
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \

0 commit comments

Comments
 (0)