@@ -8,7 +8,7 @@ ARG CUDNN=8.0.5.39-1
8
8
ENV NCCL=2.8.3
9
9
ENV NCCL_VERSION=2.8.3-1+cuda11.1
10
10
ENV CUDNN_VERSION 8.0.5.43
11
- ENV MLNX_OFED_VERSION=5.1-2.3.7
11
+ ENV MLNX_OFED_VERSION=5.1-2.3.7.1
12
12
ENV MKL_VERSION=2020.3
13
13
ENV MKL_BUILD=279
14
14
ENV NUMPY_VERSION 1.19.4
@@ -145,25 +145,23 @@ RUN mkdir -p /etc/OpenCL/vendors && \
145
145
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
146
146
147
147
# OFED
148
- ENV STAGE_DIR=/tmp
149
- RUN mkdir -p ${STAGE_DIR}
150
- RUN cd ${STAGE_DIR} && \
151
- wget -q -O - http://www.mellanox.com/downloads/ofed/MLNX_OFED-${MLNX_OFED_VERSION}/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64.tgz | tar xzf -
152
- RUN cd ${STAGE_DIR}/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64 && \
148
+ WORKDIR /tmp
149
+ RUN wget -q -O - https://www.mellanox.com/downloads/ofed/MLNX_OFED-5.1-2.3.7.1/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64.tgz | tar xzf - && \
150
+ cd /tmp/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64 && \
153
151
./mlnxofedinstall --user-space-only --without-fw-update --all -q && \
154
- cd ${STAGE_DIR} && \
155
- rm -rf ${STAGE_DIR} /MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64*
152
+ cd /tmp && \
153
+ rm -rf /tmp /MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64*
156
154
157
155
# nvidia-peer
158
- RUN mkdir -p ${STAGE_DIR} && \
159
- git clone https://github.com/Mellanox/nv_peer_memory.git ${STAGE_DIR} /nv_peer_memory && \
160
- cd ${STAGE_DIR} /nv_peer_memory && \
156
+ WORKDIR /tmp
157
+ RUN git clone https://github.com/Mellanox/nv_peer_memory.git /tmp /nv_peer_memory && \
158
+ cd /tmp /nv_peer_memory && \
161
159
./build_module.sh && \
162
- cd ${STAGE_DIR} && \
163
- tar xzf ${STAGE_DIR} /nvidia-peer-memory_1.1.orig.tar.gz && \
164
- cd ${STAGE_DIR} /nvidia-peer-memory-1.1 && \
160
+ cd /tmp && \
161
+ tar xzf /tmp /nvidia-peer-memory_1.1.orig.tar.gz && \
162
+ cd /tmp /nvidia-peer-memory-1.1 && \
165
163
dpkg-buildpackage -us -uc && \
166
- dpkg -i ${STAGE_DIR} /nvidia-peer-memory_1.1-0_all.deb
164
+ dpkg -i /tmp /nvidia-peer-memory_1.1-0_all.deb
167
165
168
166
RUN mkdir -p /opt/oracle && \
169
167
cd /opt/oracle && \
@@ -203,10 +201,6 @@ RUN git clone -q --branch=master git://github.com/xianyi/OpenBLAS.git && \
203
201
cd OpenBLAS && \
204
202
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
205
203
make install
206
- RUN cd /tmp && \
207
- git clone --recursive https://github.com/bodono/scs-python.git && \
208
- cd scs-python && \
209
- python setup.py install --scs --gpu
210
204
RUN git clone --branch=v${NUMPY_VERSION} --depth=1 https://github.com/numpy/numpy.git numpy && \
211
205
cd numpy && \
212
206
git checkout -b v${NUMPY_VERSION} && \
@@ -229,8 +223,12 @@ RUN cd /tmp && \
229
223
echo "library_dirs = /opt/intel/compilers_and_libraries_2020.3.279/linux/mkl/lib/intel64" >> site.cfg && \
230
224
echo "mkl_libs = mkl_rt" >> site.cfg && \
231
225
echo "lapack_libs =" >> site.cfg && \
232
- python3 -m pip install -U --no-cache-dir /tmp/numpy-1.18.5-cp37-cp37m -linux_x86_64.whl && \
226
+ python3 -m pip install -U --no-cache-dir /tmp/numpy-1.19.4-cp36-cp36m -linux_x86_64.whl && \
233
227
python3 setup.py install
228
+ RUN cd /tmp && \
229
+ git clone --recursive https://github.com/bodono/scs-python.git && \
230
+ cd scs-python && \
231
+ python setup.py install --scs --gpu
234
232
235
233
# install NLP packages *mecab-ko & khai*
236
234
RUN apt-get update && \
@@ -264,6 +262,7 @@ RUN echo "Install mecab-ko-dic" && \
264
262
265
263
RUN python3 -m pip install pip --no-cache-dir \
266
264
Cartopy==0.18.0 \
265
+ nvidia-dlprof \
267
266
notebook==6.0.3
268
267
269
268
WORKDIR /tmp
@@ -309,7 +308,7 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2
309
308
rm /tmp/cmake-install.sh
310
309
311
310
WORKDIR /tmp
312
- ENV OPENCV_VERSION="4.5.0 "
311
+ ENV OPENCV_VERSION="4.5.1 "
313
312
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
314
313
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
315
314
unzip ${OPENCV_VERSION}.zip && \
@@ -334,7 +333,7 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
334
333
-D WITH_V4L=ON \
335
334
-D BUILD_TESTS=OFF \
336
335
-D BUILD_PERF_TESTS=OFF \
337
- -D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.0 /modules" \
336
+ -D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.1 /modules" \
338
337
-D CMAKE_BUILD_TYPE=RELEASE \
339
338
-D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
340
339
-D PYTHON_EXECUTABLE=$(which python3) \
0 commit comments