Skip to content

Commit 70ed6e8

Browse files
committed
update nni
1 parent e66ba85 commit 70ed6e8

File tree

1 file changed

+40
-22
lines changed

1 file changed

+40
-22
lines changed

vendor/ngc-pytorch/Dockerfile.21.03-py3

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,46 @@ ENV DEBIAN_FRONTEND=noninteractive \
1515
LANG=C.UTF-8
1616

1717
RUN apt-get update && \
18-
apt-get install -y \
19-
libsm6 libxext6 libxrender-dev mercurial libopenblas-dev libgdal-dev \
20-
openjdk-8-jdk \
21-
libasound2-dev \
18+
apt-get install -y --no-install-recommends \
19+
automake \
20+
fonts-nanum \
21+
fonts-nanum-coding \
22+
fonts-nanum-extra \
2223
gfortran \
23-
libgstreamer1.0-dev \
24-
libgstreamer-plugins-base1.0-dev \
25-
libgtk-3-dev \
26-
libtbb-dev \
24+
htop \
25+
libasound2-dev \
2726
libatlas-base-dev \
27+
libavresample-dev \
2828
libdc1394-22-dev \
29-
libxvidcore-dev \
29+
libeigen3-dev \
3030
libfaac-dev \
31+
libgdal-dev \
32+
libgflags-dev \
33+
libgoogle-glog-dev \
34+
libgphoto2-dev \
35+
libgstreamer-plugins-base1.0-dev \
36+
libgstreamer1.0-dev \
37+
libgtk-3-dev \
38+
libhdf5-dev \
3139
libmp3lame-dev \
40+
libopenblas-dev \
41+
libopencore-amrnb-dev \
42+
libopencore-amrwb-dev \
43+
libprotobuf-dev \
3244
libtheora-dev \
3345
libvorbis-dev \
34-
libxvidcore-dev \
35-
libopencore-amrnb-dev libopencore-amrwb-dev \
36-
libavresample-dev \
37-
x264 \
3846
libx264-dev \
47+
libxext6 \
48+
libxrender-dev \
49+
libxvidcore-dev \
50+
mercurial \
51+
ncurses-term \
52+
protobuf-compiler \
3953
v4l-utils \
40-
libprotobuf-dev protobuf-compiler \
41-
libgoogle-glog-dev libgflags-dev \
42-
libgphoto2-dev \
43-
libeigen3-dev \
44-
libhdf5-dev \
45-
automake
54+
x264 \
55+
openjdk-8-jdk \
56+
libsm6 \
57+
libtbb-dev
4658

4759

4860
RUN update-alternatives --install /opt/conda/bin/python python /opt/conda/bin/python3 2
@@ -88,7 +100,7 @@ RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
88100
-D BUILD_opencv_java=OFF \
89101
-D WITH_CUDA=ON \
90102
-D CUDA_NVCC_FLAGS=--expt-relaxed-constexpr \
91-
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.1 \
103+
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.2 \
92104
-D ENABLE_FAST_MATH=1 \
93105
-D CUDA_FAST_MATH=1 \
94106
-D WITH_CUBLAS=1 \
@@ -165,10 +177,15 @@ RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v2.13.3/git-l
165177
bash install.sh && \
166178
rm -rf /tmp/*
167179

168-
COPY ./service-defs /etc/backend.ai/service-defs
180+
WORKDIR /tmp
181+
RUN git clone https://github.com/aristocratos/bashtop.git && \
182+
cd bashtop && \
183+
make install
184+
169185
RUN curl -fL https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz | tar -C /usr/local/lib -xz && \
170186
mv /usr/local/lib/code-server-3.9.3-linux-amd64 /usr/local/lib/code-server-3.9.3 && \
171187
ln -s /usr/local/lib/code-server-3.9.3/bin/code-server /usr/local/bin/code-server
188+
172189
# Install Open MPI
173190
RUN mkdir /tmp/openmpi && \
174191
cd /tmp/openmpi && \
@@ -198,7 +215,7 @@ RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
198215

199216
RUN python3 -m pip install --no-cache-dir \
200217
mpi4py==3.0.3 \
201-
nni==2.0 \
218+
nni==2.1 \
202219
mlflow==1.15.0 \
203220
scikit-nni==0.1.1
204221

@@ -218,6 +235,7 @@ RUN jupyter nbextensions_configurator enable && \
218235

219236
RUN apt autoclean && \
220237
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
238+
ln -sf /usr/share/terminfo/x/xterm-color /usr/share/terminfo/x/xterm-256color && \
221239
rm -rf /var/lib/apt/lists/* && \
222240
rm -rf /root/.cache && \
223241
rm -rf /tmp/*

0 commit comments

Comments
 (0)