Skip to content

Commit 1b10fe9

Browse files
authored
Update Dockerfile.21.12-py3
1 parent 09e9d2d commit 1b10fe9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

vendor/ngc-pytorch/Dockerfile.21.12-py3

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM nvcr.io/nvidia/pytorch:21.12-py3
2-
# NVIDIA PyTorch with Python 3.8 (CONDA)
2+
# NVIDIA NGC PyTorch with Python 3.8 (CONDA)
33

44
ENV DEBIAN_FRONTEND=noninteractive \
55
MPLBACKEND=Svg \
@@ -50,7 +50,7 @@ RUN apt-get update && \
5050
libtbb-dev \
5151
mercurial \
5252
ncurses-term \
53-
openjdk-8-jdk \
53+
openjdk-8-jdk \
5454
pdsh \
5555
protobuf-compiler \
5656
v4l-utils \
@@ -106,8 +106,8 @@ WORKDIR /tmp
106106
RUN git clone -q --branch=v0.3.18 git://github.com/xianyi/OpenBLAS.git && \
107107
cd OpenBLAS && \
108108
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
109-
make install
110-
RUN git clone --recursive https://github.com/bodono/scs-python.git && \
109+
make install && \
110+
git clone --recursive https://github.com/bodono/scs-python.git && \
111111
cd /tmp/scs-python && \
112112
python setup.py install --scs --gpu
113113

@@ -144,15 +144,15 @@ RUN mkdir /tmp/openmpi && \
144144
make -j $(nproc) all && \
145145
make install && \
146146
ldconfig && \
147-
rm -rf /tmp/openmpi*
147+
rm -rf /tmp/openmpi* && \
148148
# Create a wrapper for OpenMPI to allow running as root by default
149-
RUN mv /usr/local/bin/mpirun /usr/local/bin/mpirun.real && \
149+
mv /usr/local/bin/mpirun /usr/local/bin/mpirun.real && \
150150
echo '#!/bin/bash' > /usr/local/bin/mpirun && \
151151
echo 'mpirun.real --allow-run-as-root "$@"' >> /usr/local/bin/mpirun && \
152-
chmod a+x /usr/local/bin/mpirun
152+
chmod a+x /usr/local/bin/mpirun && \
153153

154154
# Configure OpenMPI to run good defaults:
155-
RUN echo "btl_tcp_if_exclude = lo,docker0" >> /usr/local/etc/openmpi-mca-params.conf
155+
echo "btl_tcp_if_exclude = lo,docker0" >> /usr/local/etc/openmpi-mca-params.conf
156156

157157
# Install Horovod, temporarily using CUDA stubs
158158
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
@@ -162,7 +162,7 @@ RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
162162
ldconfig
163163

164164
RUN python3 -m pip install --no-cache-dir \
165-
mpi4py==3.1.2 \
165+
mpi4py==3.1.2 \
166166
nni==2.5 \
167167
mlflow==1.21.0 \
168168
scikit-nni==0.2.1

0 commit comments

Comments
 (0)