chenyhn
December 9, 2020, 6:49am
#1
Hello,
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
-gencode arch=compute_50,code=[sm_50,compute_50]
-gencode arch=compute_52,code=[sm_52,compute_52]
-gencode arch=compute_61,code=[sm_61,compute_61]
-gencode arch=compute_70,code=[sm_70,compute_70]
-gencode arch=compute_72,code=[sm_72,compute_72]
-gencode arch=compute_75,code=[sm_75,compute_75]
-gencode arch=compute_86,code=[sm_86,compute_86]
How to resolve this issue ? thanks.
For the output of command ‘nvidia-smi’ and the error info, please see the attached images:
akachen
December 9, 2020, 9:17am
#2
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 ?
akachen
February 11, 2021, 10:39am
#4
Since CUDA is 11.2, I guess your GPU doesn’t support architecture ‘compute_86’, this compute capability is supported by RTX30** series GPU
njuffa
February 11, 2021, 7:15pm
#5
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 nvcc --version
(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
1 Like
Same here. After do source ~/.bashrc the problem solved. Before that set the expert path thing in ~/.bashrc