WLS2系统:Ubuntu22.04,
windows: win11
wls2更新内核后,nvcc -V 可用,但是 nvidia-smi报错:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver
搜索无果,因为是WLS2,与一般的Linux有点不太一样,驱动是用的windows系统的,所以只需在powershell里:
wsl.exe -d Ubuntu-22.04 --shutdown
wsl.exe --terminate Ubuntu-22.04
再重新打开ubuntu,输入 “nvidia-smi”: