1. 程式人生 > >nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov

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).

 

2、解決方法:

開啟Makefile.config,刪除compute_20行。如下圖所示:

未刪除之前:

刪除之後:

解決問題。

 

參考方法,如下圖:

 

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