解决nvcc fatal : Unsupported gpu architecture ‘compute_30‘在darknet的编译中的问题

首先,查看cuda版本与你的显卡对应的算力。

Matching CUDA arch and CUDA gencode for various NVIDIA architectures - Arnon ShimoniThis guide lists the various supported nvcc cuda gencode and cuda arch flags that can be used to compile your GPU code for several different GPUsicon-default.png?t=M666http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/通过上面的链接可以发现,CUDA11已经不支持compute_30了!

所以:

修改src/darknet_ros/darknet/Makefile和src/darknet_ros/darknet_ros/CMakeList.txt

修改方式:将其中包含compute_30的行进行注释

再次编译就行了!

你可能感兴趣的:(python,linux,开发语言,ubuntu,自动驾驶)