Skip to content

Commit 3ca2a26

Browse files
committed
opencv
1 parent bbdd394 commit 3ca2a26

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

commons/Dockerfile.base.py38-cuda11.3

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
307307
rm -rf /var/lib/apt/lists/
308308

309309
WORKDIR /tmp
310-
ENV OPENCV_VERSION="4.5.1"
310+
ENV OPENCV_VERSION="4.5.2"
311311
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
312312
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
313313
unzip ${OPENCV_VERSION}.zip && \
@@ -318,11 +318,19 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
318318
-DCMAKE_BUILD_TYPE=RELEASE \
319319
-D BUILD_TIFF=ON \
320320
-D BUILD_opencv_java=OFF \
321+
-D CUDA_BIN_PATH=/usr/local/cuda \
322+
-D CUDA_CUDA_LIBRARY=/usr/lib/x86_64-linux-gnu/stubs/libcuda.so \
323+
-D CUDA_FAST_MATH=ON \
324+
-D CUDA_HOST_COMPILER=/usr/bin/gcc-6 \
325+
-D CUDA_NVCC_FLAGS="-D_FORCE_INLINES --expt-relaxed-constexpr" \
326+
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 \
327+
-D CUDNN_INCLUDE_DIR=/usr/local/cuda/include \
328+
-D CUDNN_LIBRARY=/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.5.39 \
329+
-D ENABLE_AVX=ON \
321330
-D WITH_CUDA=ON \
322331
-D CUDA_NVCC_FLAGS=--expt-relaxed-constexpr \
323332
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.3 \
324333
-D ENABLE_FAST_MATH=1 \
325-
-D CUDA_FAST_MATH=1 \
326334
-D WITH_CUBLAS=1 \
327335
-D WITH_OPENGL=ON \
328336
-D WITH_OPENCL=ON \
@@ -332,7 +340,7 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
332340
-D WITH_V4L=ON \
333341
-D BUILD_TESTS=OFF \
334342
-D BUILD_PERF_TESTS=OFF \
335-
-D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.1/modules" \
343+
-D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.2/modules" \
336344
-D CMAKE_BUILD_TYPE=RELEASE \
337345
-D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
338346
-D PYTHON_EXECUTABLE=$(which python3) \
@@ -426,14 +434,12 @@ RUN jupyter nbextensions_configurator enable && \
426434
jupyter labextension install --no-build @jupyterlab/toc && \
427435
jupyter nbextension enable execute_time/ExecuteTime && \
428436
jupyter nbextension enable toc2/main && \
429-
# jupyter labextension install @pyviz/jupyterlab_pyviz && \
430-
jupyter labextension install @bokeh/jupyter_bokeh && \
431-
jupyter labextension install --no-build jupyterlab-nvdashboard && \
432-
jupyter lab build
437+
jupyter labextension install @jupyterlab/toc && \
438+
jupyter lab build
433439

434-
# Clean up
435440
RUN apt autoclean && \
436441
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
442+
ln -sf /usr/share/terminfo/x/xterm-color /usr/share/terminfo/x/xterm-256color && \
437443
rm -rf /var/lib/apt/lists/* && \
438444
rm -rf /root/.cache && \
439445
rm -rf /tmp/*

0 commit comments

Comments
 (0)