安装PSPNet 遇到error:nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated

一颗行走的大白菜

问题描述

在编译PSPNet 时遇d到error:

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

原因是,Makefile中采用了CUDA的compute capability 2.0和2.1,这是两种计算能力。安装的CUDA版本是8.0,但 从CUDA 8.0开始compute capability 2.0和2.1被弃用了,所以可以将-gencode arch=compute_20,code=sm_20 和-gencode arch=compute_20,code=sm_21这两行删除即可。

你可能感兴趣的:(安装PSPNet 遇到error:nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated)