nvcc fatal : value 'arch' is not defined for option 'gpu-architecture'
MyoungHaSong opened this issue · comments
MyoungHaSong commented
my cuda version = 9.0 V 9.0.176
I run this code
nvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=arch
but I got this error
nvcc fatal : value 'arch' is not defined for option 'gpu-architecture'
what should I do?
Jianyuan Wang commented
arch should be set depending on your GPU model, e.g., -arch=sm_52;
you can check Compilation section for more detail
San Askaruly commented
Which [arch] shall i use for NVIDIA RTX3090 during:
nvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]
if i type nvcc --list-gpu-code
command in linux terminal, it returns:
sm_35
sm_37
sm_50
sm_52
sm_53
sm_60
sm_61
sm_62
sm_70
sm_72
sm_75
sm_80
sm_86
cuda is 11.2
Virginia-wyj commented
so how tosolve this issue? i meet the same issue at the time.