Issue Building OpenCV 4.3.0 in Docker

asked 2020-07-13 22:39:41 -0500

Hi, i am trying to build opencv in the docker (ibmcom/tensorflow-ppc64le:latest-gpu-py3-jupyter). But, I faced this problem

Please set them or make sure they are set and tested correctly in the CMake files:  
CUDA_nppc_LIBRARY (ADVANCED)

The cuda used is:

root@70d2e4e71041:/tf/root# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2019 NVIDIA Corporation
    Built on Sun_Jul_28_19:07:52_PDT_2019
    Cuda compilation tools, release 10.1, V10.1.243

root@70d2e4e71041:/tf/root# apt-cache policy libcudnn7
libcudnn7:
  Installed: 7.6.4.38-1+cuda10.1
  Candidate: 7.6.5.32-1+cuda10.2
  Version table:
     7.6.5.32-1+cuda10.2 500
        500 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/ppc64el  Packages
     7.6.5.32-1+cuda10.1 500
        500 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/ppc64el  Packages
     7.6.5.32-1+cuda10.0 500
    500 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/ppc64el  Packages
 *** 7.6.4.38-1+cuda10.1 500
        500 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/ppc64el  Packages
        100 /var/lib/dpkg/status
    Cuda compilation tools, release 10.1, V10.1.243

The cmake command used:

RUN cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D INSTALL_C_EXAMPLES=OFF \
  -D OPENCV_ENABLE_NONFREE=ON \
  -D WITH_CUDA=ON \
  -D WITH_CUDNN=ON \
  -D CUDA_cublas_LIBRARY=/usr/lib/powerpc64le-linux-gnu \
  -D CUDA_cufft_LIBRARY=/usr/lib/powerpc64le-linux-gnu \
  -D OPENCV_DNN_CUDA=ON \
  -D ENABLE_FAST_MATH=1 \
  -D CUDA_FAST_MATH=1 \
  -D CUDA_ARCH_BIN=7.0 \
  -D WITH_CUBLAS=1 \
  -D OPENCV_EXTRA_MODULES_PATH=/opencv_gpu_files/opencv_contrib/modules \
  -D HAVE_opencv_python3=ON \
  -D PYTHON_EXECUTABLE=/usr/bin/python3 \
  -D BUILD_EXAMPLES=ON ..

Does anyone knows what i did wrong and what should i do to fix this? Thank you.

edit retag flag offensive close merge delete