I compile my program on a Ubuntu18.04 Linux PC with a RTX3090 GPU installed, and CUDA is 11.1, Driver Version: 455.23.04, but such an error happened:
nvcc fatal : Unsupported gpu architecture ‘compute_86’
My Makefile has the following setting:
ARCH= -gencode arch=compute_35,code=sm_35
How to resolve this issue ? thanks.
For the output of command ‘nvidia-smi’ and the error info, please see the attached images:
After installed the latest CUDA 11.1.1, then this error disappeared, thanks
I have the same problem but my version of CUDA is 11.2, so it shouldn’t appear : true or false ?
Since CUDA is 11.2, I guess your GPU doesn’t support architecture ‘compute_86’, this compute capability is supported by RTX30** series GPU
nvcc doesn’t care for the GPU in the system. If you are running with the
nvcc from CUDA 11.2, you shouldn’t get an error message
Unsupported gpu architecture ‘compute_86’ when compiling. I would suggest:
(1) Show the output of
(2) Show the complete
nvcc invocation that gave rise to the error message.
I forgot to the the steps following the installation, about PATH and LD_LIBRARY_PATH, that sorted it out. It was using CUDA 10.1
Same here. After do source ~/.bashrc the problem solved. Before that set the expert path thing in ~/.bashrc