这个错误可能是由于在GPU上执行的CUDA kernel没有正确编译或未能正确加载到设备上导致的。这可能是由于设备或CUDA版本不兼容、GPU内存不足、代码中存在错误或未正确设置CUDA环境变量等原因引起的。建议通过检查代码和环境设置,并尝试使用较新的CUDA版本或更多的GPU内存来解决此问题。同时,也可以将CUDA_LAUNCH_BLOCKING设置为1以便于调试。

RuntimeError CUDA error no kernel image is available for execution on the deviceCUDA kernel errors might be asynchronously reported at some other API callso the stacktrace below might be incorrectFor

原文地址: https://www.cveoy.top/t/topic/hgv8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录