Opencl wsl2 ubuntu nvidia

is opencl supported on wsl2 for nvidia?

Yes and no. You can either build use pocl with the nvidia gpu backend enabled but this only supports opencl 1.2
https://github.com/microsoft/WSL/issues/6951
https://portablecl.org/docs/html/cuda.html
I don’t know if copying over the opencl libs from the linux driver would work as well to have full support.

1 Like