报错信息:
RuntimeError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device
解决方法:
- 先看安装的CUDA、cuDNN版本是否匹配,没问题
- no kernel image is available 往往是因为cuda版本问题,需要安装对应cuda版本的paddle
a. paddle 安装可以参考:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/linux-pip.html
- 安装后检查是否成功:
a. import paddle后输入paddle.utils.run_check()
b. 若出现PaddlePaddle is installed successfully!则成功
参考:
4. https://github.com/PaddlePaddle/PaddleX/issues/1399
5. https://www.cnblogs.com/jaysonteng/p/14892762.html