首先,查看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 GPUshttp://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的行进行注释
再次编译就行了!



