Skip to content

[CORE]: add WSL device discovery#27287

Draft
theHamsta wants to merge 1 commit intomicrosoft:mainfrom
theHamsta:wsl-device-discovery
Draft

[CORE]: add WSL device discovery#27287
theHamsta wants to merge 1 commit intomicrosoft:mainfrom
theHamsta:wsl-device-discovery

Conversation

@theHamsta
Copy link
Contributor

Previously, GPU discovery on Linux worked by iterating over DRM nodes. This approach won't work on WSL since the DRM kernel side isn't present.

We can use NVML or dxcore to get the same information as with DRM sysfs based approach.

Description

Use nvml or dxcore to enable WSL device discovery. Based on discussion in #27286

Motivation and Context

Device in WSL would allow to use WSL in the same way as a real Linux installation. The behavior would match real Linux and WSL could be used as a Dev platform for real Linux.

Previously, GPU discovery on Linux worked by iterating over DRM nodes.
This approach won't work on WSL since the DRM kernel side isn't present.

Virtual PCI devices are still present as /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant