I'm trying to follow this guide but it's not working. https://docs.nvidia.com/cuda/wsl-user-guide/index.html#known-limitations
System requirements met:
cat /proc/versionLinux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020
On the windows side, installed the latest version: https://developer.nvidia.com/cuda/wsl
Installed cuda toolkit per instructions:
sudo apt-get install cuda-toolkit-11-2
Attempting to run BlackScholes example:
cd /usr/local/cuda/samples/4_Finance/BlackScholessudo make./BlackScholes[./BlackScholes] - Starting...CUDA error at ../../common/inc/helper_cuda.h:779 code=100(cudaErrorNoDevice) "cudaGetDeviceCount(&device_count)"
Nvidia-smi:
nvidia-smiNVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
What's wrong?