您的位置:首页 > 其它

Unsupported gpu architecture 'compute_*'2017解决方法

2017-02-12 23:13 423 查看
今天在ubuntu service 14.04 下搭建 OpenCL +OpenCV 环境, 前期安装了 CUDA7.5 ,再安装caffe,出现了上述异常。

异常原因;

makefile.config中有cuda版本限制,设置的参数有可能cuda不支持。

如下:

# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.

# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.

CUDA_ARCH := -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_50,code=sm_50 \

        -gencode arch=compute_52,code=sm_52 \

#        -gencode arch=compute_60,code=sm_60

#        -gencode arch=compute_61,code=sm_61 \

#        -gencode arch=compute_61,code=compute_61

解决方法:

看上面红色的备注,把 -gencode arch=compute_60,code=sm_60及以后的注释掉就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐