Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will DirectML inside WSL supported on Windows-on-Arm? #24

Open
ZHOUYue67 opened this issue Jun 25, 2020 · 6 comments
Open

Will DirectML inside WSL supported on Windows-on-Arm? #24

ZHOUYue67 opened this issue Jun 25, 2020 · 6 comments

Comments

@ZHOUYue67
Copy link

It will be great to be able to develop using Surface Pro X!

@jstoecker
Copy link
Contributor

@MikeChou : we do expect DirectML to support ARM64 in WSL at some point, but it isn't an initial focus. The hurdle isn't building libdirectml.so for ARM, but rather that driver support and (to a lesser extent) ML framework support is required before this scenario is useful.

@SpontaneousDuck
Copy link

The first paragraph of the README states they will support Qualcomm GPUS so that would suggest ARM maybe?

@jstoecker
Copy link
Contributor

DirectML already supports ARM (and Qualcomm GPUs) on Windows, but there's an extra piece when it comes to WSL: each hardware vendor must implement their Direct3D 12 user-mode driver as a native Linux library. You can find more technical details on how the DirectX stack works in WSL in this blog post. Secondly, each ML framework -- or application/library built on top of DML -- must also compile for ARM. We've started by building DML support in TensorFlow, but there aren't any official ARM builds of (non-lite) TF at the moment.

These are two of the reasons we haven't prioritized this particular scenario, but it is unique and definitely would be cool!

DX in WSL

@Gerdya
Copy link

Gerdya commented Jun 29, 2020

Can you confirm the following summary:

  1. UMD d3d12 driver from Qualcomm is missing
  2. libdirectml compiles for ARM without issues (but is possibly not tested)
  3. tensorflow-directML framework compiles for ARM without issues (but is possibly not tested)

Thanks in advance!

@jstoecker
Copy link
Contributor

jstoecker commented Jun 29, 2020

  1. UMD d3d12 driver from Qualcomm is missing

Yes (assuming you mean in WSL).

  1. libdirectml compiles for ARM without issues (but is possibly not tested)

Yes.

  1. tensorflow-directML framework compiles for ARM without issues (but is possibly not tested)

Not quite. We haven't even tried building TF for ARM. I suspect it would require at least a few minor changes to get TF to compile for ARM, but the exact extent isn't clear to me. Once we have the source opened up (working on it) this could be minor issue to address.

@Gerdya
Copy link

Gerdya commented Jun 29, 2020

Thanks for the feedback. Yes, i did mean the UM driver on the Linux side.
I use WSL2 one my Surface Pro X very regular- i did even compile VcXsrv (X-Server) for native ARM64 under Windows such that i have a fast Linux GUI :)

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

No branches or pull requests

4 participants