caffe安装问题——nvcc fatal : Unsupported gpu architecture compute_20

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sdlypyzq/article/details/85236835

问题

NVCC src/caffe/layers/absval_layer.cu
nvcc fatal   : Unsupported gpu architecture 'compute_20'
Makefile:604: recipe for target '.build_release/cuda/src/caffe/layers/absval_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Error 1

解决方法

去掉这两行:

-gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \

猜你喜欢

转载自blog.csdn.net/sdlypyzq/article/details/85236835