darknet_for_colab icon indicating copy to clipboard operation
darknet_for_colab copied to clipboard

Make failed saying *nvcc fatal : Unsupported gpu architecture 'compute_30'*

Open nagasanjay opened this issue 3 years ago • 6 comments

Support for 'compute_30' is removed from CUDA version 10.2. So it is unable to compile for this architecture.

nagasanjay avatar Mar 06 '21 05:03 nagasanjay

Even I'm getting this error, can someone please fix this

divyadreddy avatar Mar 07 '21 19:03 divyadreddy

https://stackoverflow.com/questions/64774548/unsupported-gpu-architecture-compute-30-on-a-cuda-5-capable-gpu

It worked when compute_30 was replaced with compute_50 in Makefile as given in the above link.

Saisrivathsan15 avatar Mar 08 '21 17:03 Saisrivathsan15

remove the line with compute_30 in the makefile. It works

https://stackoverflow.com/questions/64774548/unsupported-gpu-architecture-compute-30-on-a-cuda-5-capable-gpu

It worked when compute_30 was replaced with compute_50 in Makefile as given in the above link.

nagasanjay avatar Mar 08 '21 23:03 nagasanjay

Changing the line ARCH= -gencode arch=compute_30,code=sm_30 \ to ARCH= -gencode arch=compute_50,code=sm_50 \ worked for me.

fyuan12 avatar Mar 17 '21 19:03 fyuan12

Changing the line ARCH= -gencode arch=compute_30,code=sm_30 \ to ARCH= -gencode arch=compute_50,code=sm_50 \ worked for me.

Can I ask where exactly is this line located? I searched it in CMakeLists.txt and it's not there.

jcads avatar Apr 11 '21 10:04 jcads

Changing the line ARCH= -gencode arch=compute_30,code=sm_30 \ to ARCH= -gencode arch=compute_50,code=sm_50 \ worked for me.

Can I ask where exactly is this line located? I searched it in CMakeLists.txt and it's not there.

It is in the "Makefile"

nagasanjay avatar Apr 12 '21 04:04 nagasanjay

This happens due to the upgrade CUDA on Colab. MAKEFILE has been updated to fix this issue

quangnhat185 avatar Jan 07 '23 08:01 quangnhat185