is opencl supported on wsl2 for nvidia?
generix
2
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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| OpenCL support for Nvidia GPUs on WSL2 | 1 | 2425 | August 24, 2022 | |
| WSL2/Windows 10 and OpenCL support | 1 | 5100 | May 5, 2021 | |
| OpenCL on Windows Subsystem for Linux | 4 | 501 | June 3, 2025 | |
| OpenCL on Windows Subsystem for Linux | 0 | 341 | June 3, 2025 | |
| nvidia drivers with OpenCL 1.2 or newer (2.0) support | 1 | 1438 | March 21, 2015 | |
| OpenCL 1.2 suport | 3 | 2732 | April 1, 2013 | |
| OpenCL 1.2 | 1 | 2505 | June 21, 2015 | |
| Support for OpenCL 1.2 - GTX 690 / Ubuntu | 5 | 2419 | March 29, 2016 | |
| openCL support on linux driver | 1 | 1664 | April 1, 2013 | |
| OpenCL 1.2 support in NVIDIA drivers | 13 | 52798 | May 27, 2015 |