您的位置:首页 > Web前端

Caffe编译的时候出现warning: The 'compute_20' and 'sm_20' architectures are deprecated怎么办

2016-12-30 09:45 429 查看
至于为什么会出现这种警告,如下网站回答的较好.

http://stackoverflow.com/questions/15714360/compiling-cuda-program-for-a-geforce-310-compute-capability-1-2-with-unmatched

我的解决办法简单粗暴,在makefile.config 文件中 删除相关的行.即可

搜索中文页面没有直接回答这个问题的,就写了一篇博客,希望可以帮到后人.

删除前

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_50,code=compute_50


删除后

CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_50,code=compute_50


这样在编译的时候就没有警告了.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  caffe-cuda
相关文章推荐