OutofAi / cudacanvas

Python Module for PyTorch Tensor Visualisation in CUDA Eliminating CPU Transfer
MIT License
26 stars 0 forks source link

WSL2: cudaGraphicsGLRegisterImage failed: OS call failed or operation not supported on this OS #2

Closed critopadolf closed 5 months ago

critopadolf commented 5 months ago

WSL2, Ubuntu 20.04.6 LTS built with pytorch 2.0.1+cu117

(I'm not sure whether this issue is specific to this library, sorry if it isn't relevant), The window pops up with a black image and I get this error. I'm running the im_show example.

What could be wrong? Thanks.

OutofAi commented 5 months ago

Unfortunately WSL2 doesn't support Cuda Interoperability yet, so WSL 2 tempt to be quite limited unfortunately when it comes to these functionalities

critopadolf commented 5 months ago

I'll use tensor_on_cpu = tensor_on_gpu.to('cpu', non_blocking=True) for now until I switch to a VM. I wasn't sure if I had done something wrong I very much appreciate the response I didn't know what to lookup to figure it out.

Thanks!

OutofAi commented 5 months ago

no worries, it's still early days for WSL 2 and Cuda is evolving a lot as well, we will let you know if WSL2 added support!

Cheers!