RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
看起来貌似是匹配的
但是我的cudnn版本不一定匹配。
安装cudnn
参考:https://blog.csdn.net/h3c4lenovo/article/details/119003405
sudo cp cuda/include/cudnn.h /usr/local/cuda-10.1/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda-10.1/lib64
sudo chmod a+r /usr/local/cuda-10.1/include/cudnn.h
sudo chmod a+r /usr/local/cuda-10.1/lib64/libcudnn*
如果还是不行,继续参考:
https://blog.csdn.net/m0_46483236/article/details/124112298#:~:text=NVIDIA%20A100-PCIE-40GB%20with%20CUDA%20capability%20sm_80%20is%20not,check%20the%20instructions%20at%20Start%20Locally%20%7C%20PyTorch