cuda环境下安装opencv出现nvcc warning : The 'compute_11'
2017-06-01 11:45
387 查看
警告打印:
nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release.
找到cmake后产生的OpencvConfig.cmake文件,找到如下代码:
# Version Compute Capability from which OpenCV has been compiled is remembered
set(OpenCV_COMPUTE_CAPABILITIES -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30)
将"-gencode ;arch=compute_11,code=sm_11";-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13; 等删除。
主要因为此架构在CUDA过时~~将来也将不支持
以上若无果:
在cmakelist中关闭cuda~~
或者在cmake时加上参数-D BUILD_opencv_gpu=OFF
nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release.
找到cmake后产生的OpencvConfig.cmake文件,找到如下代码:
# Version Compute Capability from which OpenCV has been compiled is remembered
set(OpenCV_COMPUTE_CAPABILITIES -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30)
将"-gencode ;arch=compute_11,code=sm_11";-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13; 等删除。
主要因为此架构在CUDA过时~~将来也将不支持
以上若无果:
在cmakelist中关闭cuda~~
或者在cmake时加上参数-D BUILD_opencv_gpu=OFF
相关文章推荐
- cuda环境下安装opencv出现nvcc warning : The 'compute_11'
- cuda环境下安装opencv出现nvcc warning : The 'compute_11'
- 安装opencv出现:cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared
- 心酸的Caffe安装之路 环境搭配 Ubuntu16.04+gtx1080+cuda8.0+cudnn5.1+opencv+Anaconda3+caffe
- ubuntu14.04+cuda 环境下安装opencv2.4.9
- vs2015+opencv3.3.0+cuda9.1编译,出现nvcc fatal : Unsupported gpu architecture 'compute_20'
- TX2核心板安装OpenCV3.2(在cuda9.0的环境下)
- 深度学习环境安装和设置 - Ubuntu 16.04.2 + GTX1080Ti (版本382.22)+ CUDA 8.0.61 + cuDNN 6.0 + OpenCV 3.2 + Caffe
- Ubuntu16.04+CUDA9.1+cudnn-..-v7环境安装caffe runtest出现问题
- Ubuntu16环境下安装yolo2关于opencv3.1出现的错误记录
- Ubuntu14.04 CUDA环境安装OpenCV2.4.9
- 安装Opencv.*在Ubuntu16.04 cuda8.0环境下
- python3安装opencv3扩展库以及jupyter环境下出现的问题汇总
- 安装opencv出现:cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared
- 安装好cuda和cudnn后,安装opencv2.4.9出现错误
- ubuntun16.04 +cuda8.0+cudnn5+opencv2.3+python+caffe安装过程中出现的一些问题
- 在CENT OS 7.0 64位系统上源码编译安装OPENCV3.0以及CUDA7.0,支持CUDA开发,并集成QT5.5.0的开发环境
- win7环境+pycharm+python3.5+OpenCV安装,引入cv2时出现:ImportError: DLL load failed: 找不到指定的模块
- No rule to make target 'usr/lib/x86_64-linux-gnu/libcuda.so' Linux下安装OpenCV时 make编译出现的Bug
- Ubuntu11.10 上安装CUDA开发环境