I’m using Ubuntu 18.04 LTS for subsystem.
I’ve installed NVIDIA WSL2 drivers from official website - 471.21 version.
My GPU is Geforce GTX 1650. In documentation of CUDA it’s written, that you cannot install NVIDIA drivers inside subsystem, so I didn’t do it.
I’ve tried several versions of CUDA and neither of them works.
When I’m typing “nvidia-smi” commend, there is an error, that the GPU cannot be found, but when I’m using “nvidia-smi.exe” - there is a miracle and I see my graphic card.
I’ve tried to “make” CUDA sample, but there is an error with code 35 - cudaErrorNoDevice.
My final goal is to use TensorRT library - that’s why I’m using only Ubuntu 18.04.