Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported gpu architecture compute_30 on a CUDA 5 capable gpu

I'm currently trying to compile Darknet on the latest CUDA toolkit which is version 11.1. I have a GPU capable of running CUDA version 5 which is a GeForce 940M. However, while rebuilding darknet using the latest CUDA toolkit, it said

nvcc fatal : Unsupported GPU architecture 'compute_30'

compute_30 is for version 3, how can it fail while my GPU can run version 5 Is it possible that my code detected my intel graphics card instead of my Nvidia GPU? if that's the case, is it possible to change its detection?

like image 449
3MP The Rook Avatar asked Nov 10 '20 18:11

3MP The Rook


People also ask

What happened to compute_30 in CUDA?

Support for compute_30 has been removed for versions after CUDA 10.2. So if you are using nvcc make sure to use this flag to target the correct architecture in the build system for darknet You may also need to use this one to avoid a warning of architectures are deprecated. Show activity on this post. command.

Why does my GPU show activity when I run CUDA?

This is because you install cuda,also you need to check your architecture. The code is only meet the Kepler of architecture of GPU Show activity on this post.

What GPU do you use for CUDA 5?

I have a GPU capable of running CUDA version 5 which is a GeForce 940M. However, while rebuilding darknet using the latest CUDA toolkit, it said

Does NVCC support compute_30?

Support for compute_30 has been removed for versions after CUDA 10.2. So if you are using nvcc make sure to use this flag to target the correct architecture in the build system for darknet You may also need to use this one to avoid a warning of architectures are deprecated.


1 Answers

Support for compute_30 has been removed for versions after CUDA 10.2. So if you are using nvcc make sure to use this flag to target the correct architecture in the build system for darknet

-gencode=arch=compute_50,code=sm_50

You may also need to use this one to avoid a warning of architectures are deprecated.

-Wno-deprecated-gpu-targets 
like image 150
AbdelAziz AbdelLatef Avatar answered Jan 04 '23 12:01

AbdelAziz AbdelLatef