intel-gpu / documentation

8 stars 1 forks source link

Is this installation guide applicable for Ubuntu WSL? #37

Open quanmai opened 2 years ago

quanmai commented 2 years ago

Hi,

Is it applicable for ubuntu WSL? As I am having the issue of there is no directory: 'dev/dri/'

Thanks, Quan

tripzero commented 2 years ago

The docs are for native ubuntu. The i915 kernel module sets up /dev/dri. WSL 2.0 is supposed to use a real linux kernel, but I do not know if i915 can work on it.

jketreno commented 2 years ago

WSL2 can use a paravirtualized Linux kernel driver DKGKERNEL and the compute-runtime on GitHub provides initial support. See Compute Runtime's WSL.md where it was added in version 21.30.20482.

@tripzero Can you verify that the packages published to repositories.intel.com have WSL support enabled? The latest version published there is 21.49.21786, which is newer than 21.30.20482. So theoretically it should provide support (unless it has been compiled out), correct?

tripzero commented 2 years ago

I tried it on my windows 10 20H2 laptop (after updating to a graphics driver later than what is recommended in WSL.md), clinfo reported 0 devices. @jchodor may have a better way of checking for support. I could be doing something wrong.

ChenKej1e commented 2 years ago

So far, we only validate on native Linux. Need to double confirm on WSL and have feedback later.

ChenKej1e commented 2 years ago

Hi @quanmai , Please use the below instruction to get the PCIe devices in the WSL. This guide is not applicable if there is no Intel GPU PCIe device. On my laptop(Intel TigerLake i7-1185G7), no Intel GPU device in WSL. FYI.

$ lspci 
1b96:00:00.0 3D controller: Microsoft Corporation Device 008e