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

来源:互联网 发布:mac去除app store角标 编辑:程序博客网 时间:2024/06/05 15:45

今天在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及以后的注释掉就可以了。

1 0
原创粉丝点击