Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
22140 Discussions

NPU in WSL

Peter_Cs
Beginner
4,142 Views

Hello Experts,

I would like to create a WSL (Ubuntu (Default) / Ubuntu 22.04) Python development environment, where I can use the NPU device of my Win11 notebook (Intel(R) Core(TM) Ultra 9 185H 2.50 GHz).
Unfortunately, I can't put the NPU through, so it is not listed in dmesg nor after the lspci command.

My WSL --version:


WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3296

The GPU (Intel ARC) driver version is: 31.0.101.5126
The NPU driver version is: 31.0.100.2016

Is there any solution for using the NPU in WSL?


I did some research but could not apply any of the followings (because the device is not listed in the WSL, like /dev/accel/accel0):
https://community.intel.com/t5/Blogs/Tech-Innovation/Artificial-Intelligence-AI/Accelerating-AI-applications-on-Windows-Subsystem-for-Linux-with/post/1401721
https://learn.microsoft.com/en-us/windows/ai/directml/gpu-pytorch-wsl
https://github.com/intel/linux-npu-driver/releases
https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2023-0/configure-wsl-2-for-gpu-workflows.html

Thank you for your help in advance!
Best regards,
Peter

4 Replies
Uvoltan
Beginner
3,767 Views

wow still no reply :<.. i have same issue. i cannot use npu even i have the npu part in my notebook

Stefan3D
Honored Contributor II
3,755 Views

I think there is the same limitation as with the GPU which works through DirectX translation layers.

You might have noticed in your favourite GPU tool that it shows a MESA DZN driver under WSL, but not the native Windows driver.

 

The only thing i could imagine is DirectML on WSL in the far future 🤔

 

0 Kudos
ap2121
Beginner
731 Views

hello, are there any updates on this?

0 Kudos
RickRichmond
Beginner
507 Views
0 Kudos
Reply