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

    技术2022-07-21  94

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

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

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

    修改方法:

    1 查看根据显卡信号查看算力:

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

    2 修改darknet的makefile:

    3 重新编译

     

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

    Processed: 0.009, SQL: 9