CUDA initialization: Unexpected error from cudaGetDeviceCount()
CUDA 初始化:来自 cudaGetDeviceCount() 的意外错误
这是由NVIDIA NVML驱动程序/库版本不匹配引起的,如何解决呢?
sudo reboot
直接重启机器好吧,如果你不想重启机器,参考一下博文:
https://stackoverflow.com/questions/66371130/cuda-initialization-unexpected-error-from-cudagetdevicecount