程序中使用到了darknet静态库,将该程序放在另一台机器上执行时报错:

CUDA Error: no kernel image is available for execution on the device

原因:两台机器显卡的算力不一致,在编译darknet的时候应修改makefile配置使其与本机的gpu算力一致。

然后将生成的darknet静态库放程序里再重新编译。

修改方法:

1 查看根据显卡信号查看算力:
CUDA Error: no kernel image is available for execution on the device

 地址:https://developer.nvidia.com/cuda-gpus

2 修改darknet的makefile:

CUDA Error: no kernel image is available for execution on the device

3 重新编译

 

参考:https://www.wandouip.com/t5i107650/

分类:

技术点:

相关文章:

猜你喜欢