CUDA sample throwing error

I had the same problem and was banging my head for half a day. My problem was that I installed the WSL compatible driver (https://developer.nvidia.com/cuda/wsl/download ) before switching to new Windows Build which supports CUDA on WSL 2. I found for instance that libcuda.so was missing from C:\Windows\System32\lxss\lib. I had to re-install the wsl driver and after re-installing the driver everything worked.

2 Likes