Been attempting to fix this problem for a good few days now. Running CUDA applications and samples results in this error, despite having a driver that should support the toolkit, e.g. for driverQuery:
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
Initially followed the guide at CUDA on WSL :: CUDA Toolkit Documentation which gave me the error. Then, reinstalled the WSL2 distribution and followed the steps at Failure to install CUDA on WSL 2 Ubuntu to the same effect. Made sure to not install the driver in WSL2.
My “C:\Windows\System32\lxss\lib” directory looks like this:
And in WSL2, my “/usr/lib/wsl/lib” directory looks the exact same.
OS: Ubuntu 18.04 LTS on WSL2
Kernel version: 5.10.60.1
GPU: GTX 1080
Driver version: 510.06
CUDA version: 10.2 (also tried 11.5 and 11.0)
Any help would be greatly appreciated.