nvcc fatal : Unsupported gpu architecture 'compute_86'
I have a Nvidia RTX 3090 ti 24GB with this drivers
CUDA Version: 11.4 

Driver Version: 470.74

18.04.1-Ubuntu SMP

Cuda compilation tools, release 9.1, V9.1.85

I've looked for this card architecture and it is Ampere so the version of library are compute_86 or sm_86(if I am not wrong). But while compiling with nvcc it gives me back

nvcc fatal   : Unsupported gpu architecture 'compute_86'

I've runned nvcc --help and I've found something strange, it returned me that for gpu-code and gpu-architecture

Allowed values for this option:  'compute_30','compute_32','compute_35',
'compute_37','compute_50','compute_52','compute_53','compute_60','compute_61',
'compute_62','compute_70','compute_72','sm_30','sm_32','sm_35','sm_37','sm_50',
'sm_52','sm_53','sm_60','sm_61','sm_62','sm_70','sm_72'.

So I'm missing any driver version or some library that has to be donwloaded or I can't compile with my GPU?

In your posted system information, the last line
Cuda compilation tools, release 9.1, V9.1.85

indicates that your NVCC is currently V9.1 (use nvcc -V to know for sure). NVCC of this version is too old to support compute_86. A possible reason for which this happens is that you have installed the CUDA toolkit (including NVCC) and the GPU drivers separately, with different CUDA versions. You can solve it by updating it to V11.4 by following the instructions on this official page:  developer.nvidia.com/cuda-11-4-2-download-archive. In my experience, managing NVIDIA drivers and CUDA toolkits with apt often messes up the system. So it is recommended to use the official installer instead. Remember to reset the CUDA-related environment variables to link to the new version if you have set them before.
To get another specific version of CUDA, you can just google &quot;cuda toolkit (version number) download&quot; and look for the official nvidia website results.
