nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov

1、问题:

执行:

$ make all -j8

出现如下提示:

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov_第1张图片

 

2、解决方法:

打开Makefile.config,删除compute_20行。如下图所示:

未删除之前:

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov_第2张图片

删除之后:

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov_第3张图片

解决问题。

 

参考方法,如下图:

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov_第4张图片

 

3、参考链接:

https://blog.csdn.net/u010454261/article/details/53943788

https://blog.csdn.net/xunan003/article/details/78428971

http://www.caffecn.cn/?/question/1077

http://www.bubuko.com/infodetail-2132830.html

 

你可能感兴趣的:(开发环境搭建,caffe)