I am tring to make the caffe ,but got the nvcc fatal : Unsupported gpu architecture 'compute_80' error. I have the following configuration.
Description: Ubuntu 20.04.5 LTS
$ uname -m
x86_64
I was following this post, its seems like upgrading the CUDA version and export the paths (LD_LIBRARY_PATH, PATH , CUDA_HOME) done the trick. But I am using the latest CUDA version and done all the path exporting also. It looks like gpu architecture is also there -
$ nvcc --help
--gpu-architecture <arch>
Allowed values for this option: 'all','all-major','compute_50','compute_52',
'compute_53','compute_60','compute_61','compute_62','compute_70',
'compute_72','compute_75','compute_80','compute_86','compute_87',
'compute_89','compute_90','compute_90a','lto_50','lto_52','lto_53',
'lto_60','lto_61','lto_62','lto_70','lto_72','lto_75','lto_80','lto_86',
'lto_87','lto_89','lto_90','lto_90a','native','sm_50','sm_52','sm_53',
'sm_60','sm_61','sm_62','sm_70','sm_72','sm_75','sm_80','sm_86','sm_87',
'sm_89','sm_90','sm_90a'.
Right now, I am just really confused and don't understand what I am missing here. Should I downgrade the CUDA version or are there any other solutions available? any help would be greatly appreciated.

It seems like the problem was with the
Makefile.configfile. For some reason, all theCUDA_ARCH:-gencodewas disabled in theMakefile.configfile.I have enabled all the
CUDA_ARCH:-gencodeand tried to make it again but there was anothernvcc fatalerror,nvcc fatal : Unsupported gpu architecture 'compute_30'. What I have did, simple removed this-gencode arch=compute_30,code=sm_30 \from theMakefile.configfile and added my required-gencode.And this time it works!!!!