Skip to content

Commit 61c0383

Browse files
committed
Base kernel 20.12, py36, cuda11.1
1 parent 6968568 commit 61c0383

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

commons/Dockerfile.base.cuda11.1

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG CUDNN=8.0.5.39-1
88
ENV NCCL=2.8.3
99
ENV NCCL_VERSION=2.8.3-1+cuda11.1
1010
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
1212
ENV MKL_VERSION=2020.3
1313
ENV MKL_BUILD=279
1414
ENV NUMPY_VERSION 1.19.4
@@ -145,25 +145,23 @@ RUN mkdir -p /etc/OpenCL/vendors && \
145145
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
146146

147147
# 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 && \
153151
./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*
156154

157155
# 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 && \
161159
./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 && \
165163
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
167165

168166
RUN mkdir -p /opt/oracle && \
169167
cd /opt/oracle && \
@@ -203,10 +201,6 @@ RUN git clone -q --branch=master git://github.com/xianyi/OpenBLAS.git && \
203201
cd OpenBLAS && \
204202
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
205203
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
210204
RUN git clone --branch=v${NUMPY_VERSION} --depth=1 https://github.com/numpy/numpy.git numpy && \
211205
cd numpy && \
212206
git checkout -b v${NUMPY_VERSION} && \
@@ -229,8 +223,12 @@ RUN cd /tmp && \
229223
echo "library_dirs = /opt/intel/compilers_and_libraries_2020.3.279/linux/mkl/lib/intel64" >> site.cfg && \
230224
echo "mkl_libs = mkl_rt" >> site.cfg && \
231225
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 && \
233227
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
234232

235233
# install NLP packages *mecab-ko & khai*
236234
RUN apt-get update && \
@@ -264,6 +262,7 @@ RUN echo "Install mecab-ko-dic" && \
264262

265263
RUN python3 -m pip install pip --no-cache-dir \
266264
Cartopy==0.18.0 \
265+
nvidia-dlprof \
267266
notebook==6.0.3
268267

269268
WORKDIR /tmp
@@ -309,7 +308,7 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2
309308
rm /tmp/cmake-install.sh
310309

311310
WORKDIR /tmp
312-
ENV OPENCV_VERSION="4.5.0"
311+
ENV OPENCV_VERSION="4.5.1"
313312
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
314313
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
315314
unzip ${OPENCV_VERSION}.zip && \
@@ -334,7 +333,7 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
334333
-D WITH_V4L=ON \
335334
-D BUILD_TESTS=OFF \
336335
-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" \
338337
-D CMAKE_BUILD_TYPE=RELEASE \
339338
-D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
340339
-D PYTHON_EXECUTABLE=$(which python3) \

0 commit comments

Comments
 (0)