[Caffe] - No.1 nvcc fatal : Unsupported gpu architecture 'compute_20'

编译Caffe出现以下错误:

nvcc fatal : Unsupported gpu architecture 'compute_20'

解决方法:

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

不支持compute_20 即在Makefile.config中把compute_20 所在行注释掉,然后make clean,重新make

你可能感兴趣的:(Caffe)