cuda8.0配置opencv2.4.9可能遇到的两个问题

1、
nvcc fatal : Unsupported gpu architecture’compute_11’
解决方案:
~/opencv-2.4.9/build下

sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ./

2、error: ‘NppiGraphcutState’ has not been declared
解决方案:
在opencv目录中找到graphcuts.cpp
修改

#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) 

#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) || (CUDART_VERSION >= 8000)

3、NCVPixelOperations.hpp(xx): error: a storage class is not allowed in an explicit specialization
替换NCVPixelOperations.hpp
下载地址:http://download.csdn.net/download/znculee/9294885
4、在make install时候出现:CMake Error at cmake_install.cmake:36 (FILE):
这是权限不足问题,解决方案:

sudo make install

你可能感兴趣的:(深度学习,gpu,cuda)