In Ubuntu virtual environment on Windows 10 , torch.cuda.is_available() is returning False

Hi,
I’m unable to access GPU on Ubuntu virtual environment on Windows 10 (through WSL2). It is returning False on giving command torch.cuda.is_available(). I’m on Nvidia Geforce GTX 1650 Ti GPU and CUDA version installed on Windows is 470.14.
Would appreciate your quick help as I’m working on urgent deliverable.

Thanks and regards,
Asheesh

IIRC, the cuda passthrough support to WSL2 was cut/defunct in recent Windows 10 versions, which one are you running?

I’m on Windows Build 21354.1 (which I believe is latest).

Doesn’t work in that build, see
https://github.com/microsoft/WSL/issues/6773