Build OpenCV with CUDA support

前端 未结 8 1230
-上瘾入骨i
-上瘾入骨i 2020-12-29 05:55

Im use CMake to generate visual studio 2013 solution. Next im try to build it, but get follow error:

Building NVCC (Device) object modules/core/CMakeFile

相关标签:
8条回答
  • 2020-12-29 06:23

    cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_TIFF=ON -D BUILD_EXAMPLES=ON -D CUDA_GENERATION=Kepler -D BUILD_NEW_PYTHON_SUPPORT=ON ..

    worked for me for OpenCV 2.4.11

    0 讨论(0)
  • 2020-12-29 06:28

    This is because of your gpu type is mismatching.

    You have to define CUDA_GENERATION explicitly.

    In my side, I could find 3 types of CUDA_GENERATION; Auto, Kepler, Fermi.

    When I set CUDA_GENERATION as Kepler, compute_11 changed to compute_30 and build successful.

    0 讨论(0)
提交回复
热议问题