cuda环境下安装opencv出现nvcc warning : The 'compute_11'
2017-06-29 17:28
501 查看
警告打印:
[plain] view
plain copy
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文件,找到如下代码:
[plain] view
plain copy
# 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
[plain] view
plain copy
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文件,找到如下代码:
[plain] view
plain copy
# 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'
- ubuntu14.04编译opencv-2.4.9出现“nvcc fatal : Unsupported gpu architecture 'compute_11'”错误
- cuda8.0使用nvcc编译程序出现warning:The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated的解决办法
- 心酸的Caffe安装之路 环境搭配 Ubuntu16.04+gtx1080+cuda8.0+cudnn5.1+opencv+Anaconda3+caffe
- vs2015+opencv3.3.0+cuda9.1编译,出现nvcc fatal : Unsupported gpu architecture 'compute_20'
- opencv在Linux安装出现“The CXX compiler identification is unknown”问题
- Windows环境下安装beautifulsoup4出现 'You are trying to run the Python 2 version of Beautiful Soup ....错误
- 安装Opencv.*在Ubuntu16.04 cuda8.0环境下
- Ubuntu16环境下安装yolo2关于opencv3.1出现的错误记录
- TX2核心板安装OpenCV3.2(在cuda9.0的环境下)
- ubuntu14.04+cuda 环境下安装opencv2.4.9
- 安装PHP环境出现The mbstring extension is missing
- 双显卡笔记本安装CUDA+theano、tensorflow环境
- Ubuntu16.04+CUDA9.1+cudnn-..-v7环境安装caffe runtest出现问题
- Ubuntu14.04 CUDA环境安装OpenCV2.4.9
- ubuntun16.04 +cuda8.0+cudnn5+opencv2.3+python+caffe安装过程中出现的一些问题
- 深度学习环境安装和设置 - Ubuntu 16.04.2 + GTX1080Ti (版本382.22)+ CUDA 8.0.61 + cuDNN 6.0 + OpenCV 3.2 + Caffe
- python3安装opencv3扩展库以及jupyter环境下出现的问题汇总
- win7环境+pycharm+python3.5+OpenCV安装,引入cv2时出现:ImportError: DLL load failed: 找不到指定的模块