1. CUDA_nppi_LIBRARY问题
报错信息为:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
这是因为
× 在cuda9.0中,nppi被分割成其他的小部分
× cuda 不再使用fermi,不兼容cuda2.0
解决方法:
(1) 修改opencv-3.2.0/cmake/FindCUDA.cmake
替换:
find_cuda_helper_libs(nppi)
为:
find_cuda_helper_libs(nppial)
find_cuda_helper_libs(nppicc)
find_cuda_helper_libs(nppicom)
find_cuda_helper_libs(nppidei)
find_cuda_helper_libs(nppif)
find_cuda_helper_libs(nppig)
find_cuda_helper_libs(nppim)
find_cuda_helper_libs(nppist)
find_cuda_helper_libs(nppisu)
find_cuda_helper_libs(nppitc)
替换:
set(CUDA_npp_LIBRARY "${CUD