Intel HD Graphics and WSL/WSL2
System
- Razer Blade Studio 2020
- Edition: Windows 10 Pro Insider Preview Version: 2004 Installed on: 12/11/2020 OS build: 21277.1000 Experience: Windows Feature Experience Pack 220.32303.0.2003 WSL kernel: 5.4.72-microsoft-standard-WSL2
Problem Intel HD Graphics setup/configuration in WSL/WSL2. Related to #300.
Process Installed NVIDIA CUDA Quadro for WSL drivers for Windows 10 and followed instructions for CUDA on WSL to configure an Ubuntu distro. Built and ran a simple CUDA app -- everything works fine. Instructions from NVIDIA are very clear. Intel is a different story. Installed Intel beta drivers and followed Intel's GPGPU setup instructions for Ubuntu 20.04. Built a simple app with oneAPI went smoothly but ran into a runtime error when selecting Intel iGPU:
$ ./test_sycl
terminate called after throwing an instance of 'cl::sycl::runtime_error'
what(): No device of requested type available. Please check https://software.intel.com/en-us/articles/intel-oneapi-dpcpp-compiler-system-requirements-beta -1 (CL_DEVICE_NOT_FOUND)
Aborted
Selecting default/CPU device things are fine:
$ ./test_sycl
Running on: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
<...>
I get the same result when using WSL and WSL2.
Anyone able to get Intel HD Graphics (iGPU) working in WSL/WSL2?
duplicate of #300
duplicate of #300
In what sense? #300 was from April 2020, and there wasn't yet support for Intel HD Graphics in WSL -- it is now available. However, I am unable to find any instructions to get things working.
My first hunch is that I may need to build intel/compute-runtime and intel/intel-graphics-compiler myself. Please advise.
@alalek, Do you prefer that next time I re-open a closed issue with follow-ups rather than open a new issue if the problem is similar?
@vrpascuzzi - we prefer a new issue. Possibly referencing the previous one.
Thanks for asking and thank you for the report.
Thanks, @AdamCetnerowski! Indeed, the previous one was referenced in the original post.
WSL/WSL2 are not currently supported in the compute runtime. We are actively exploring support and will update this issue accordingly.
Thanks, @bfliflet.
Can you fill me in on what purpose the Intel Graphics BETA WSL Windows 10 DCH Drivers serve? Really I was just hoping for instructions to follow to have the iGPU work under WSL/WSL2.
@vrpascuzzi, thanks for the interest. The initial support in that driver is for
"D3D12 on Linux support: Enables running DirectML training via TensorFlow in a Linux terminal on a Windows 10 host."
The communication flow for the compute runtime will piggy-back on top of this previous work; however, the compute-runtime path for WSL/WSL2 relies on a parallel user-mode driver / kernel mode driver interface flow that is still being evaluated by ourselves and relevant parties.
I appreciate the reply, @bfliflet.
Looking forward to the added support. Please let me know if I can help testing.
WSL2 support was recently added. Please see here : https://github.com/intel/compute-runtime/blob/master/WSL.md for instructions.
I have a similar problem. I installed all the packages from Intel OneAPI link. On Windows 11 all works fine and the VideoProcessor Intel(R) UHD Graphics can be used from OpenVINO libraries. On the contrary on WSL2 with the Ubuntu 22.04 distro I see no GPU:
clinfo clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
sycl-ls [opencl:cpu][opencl:0] Intel(R) OpenCL, Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz OpenCL 3.0 (Build 0) [2024.18.7.0.11_160000]
https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2023-0/configure-wsl-2-for-gpu-workflows.html