Mask_RCNN_Pytorch icon indicating copy to clipboard operation
Mask_RCNN_Pytorch copied to clipboard

nvcc fatal : value 'arch' is not defined for option 'gpu-architecture'

Open MyoungHaSong opened this issue 6 years ago • 3 comments

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?

MyoungHaSong avatar Aug 22 '19 08:08 MyoungHaSong

arch should be set depending on your GPU model, e.g., -arch=sm_52; you can check Compilation section for more detail

jytime avatar Aug 22 '19 13:08 jytime

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

tuttelikz avatar Mar 14 '21 21:03 tuttelikz

so how tosolve this issue? i meet the same issue at the time.

Virginia-wyj avatar Mar 29 '21 09:03 Virginia-wyj