cuda环境下安装opencv出现nvcc warning : The 'compute_11'
2016-05-13 10:38
561 查看
警告打印:
找到cmake后产生的OpencvConfig.cmake文件,找到如下代码:
将"-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
相关文章推荐
- vim和xshell配色
- 将Tomcat注册为windows服务
- Linux设备驱动中得 DTS文件加载过程
- Linux 3.10 ARM Device Tree 的初始化
- linux C 获取当前目录的实现
- adb shell 查看手机根目录
- 架构优化和设计
- Linux下更改系统时区及时间
- centOS下samba服务器配置
- Linux下集群的搭建
- LINUX下PHP程序实现WORD文件转化为PDF文件的方法
- iOS 开发总的优秀网站
- linux php安装扩展方法 查找配置文件
- Heartbeat+LVS构建高可用负载均衡集群
- 关于容器、框架、架构的一些概念(转载)
- /etc/profile、~/.bash_profile等几个文件的执行过程
- centos yum升级到最新的mysql 5.6
- Linux删除文件夹命令
- ps 和 top cpu 占用区别
- linux下vi命令大全