range_libc icon indicating copy to clipboard operation
range_libc copied to clipboard

Error when compile with CUDA on Jetson TX2

Open vietanhle0101 opened this issue 4 years ago • 1 comments

I get the below error when running compile_with_cuda.sh on my Jetson TX2

nvcc fatal   : Value 'sm_20' is not defined for option 'gpu-architecture'
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

Do you know this problem?

vietanhle0101 avatar Jun 26 '20 22:06 vietanhle0101

If you're still stuck on this, take a look here.

sm_20 refers to a (very) old NVIDIA GPU architecture. If you're using a Jetson TX2, you likely need to change this value to sm_62. For anyone else looking at this, you could try to change the SM version based on your own GPU.

Take a look at this PR on the same repo. In the source file you can see where to make the change.

tianyilim avatar Apr 20 '23 12:04 tianyilim