-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add WebGPU execution provider #349
Comments
@decahedron1: Do you also plan to make the WebGPU execution provider available in your static library binaries of onnxruntime? |
Yes, once ONNX Runtime 1.21 rolls around. (I already tried including it in the 1.20.2 binaries but had trouble building Dawn; seems to be fixed on trunk) |
Great, just great! Thank you @decahedron1. |
Thank you @decahedron1 |
I guess we should add the WebGPU ep in the docs as well? Specifically here: https://github.com/pykeio/ort/blob/main/docs/pages/setup/cargo-features.mdx#execution-providers |
Nice catch =) |
Any reason to not include the WebGPU ep for the Windows, macOS, and Linux builds as well? |
Haven't gotten the chance to try compiling for those platforms. I also may not provide binaries for non-Emscripten depending on binary size (>150 MB) |
Let's see how fast the WebGPU ep will be. I really hope for it to become the default go-to for hardware acceleration across platforms! But no idea, yet. |
FYI, I got the WebGPU ep compiled from microsoft/onnxruntime@ec3f871 for all (of my) targets but Windows: https://github.com/alfatraining/ort-artifacts-staging/actions/runs/13437315034 The error on Windows is ambiguous:
I know one should wait for onnxruntime v1.21.0+ to rely on WebGPU but I am just too curious 🙈 Update: I got the WebGPU ep running on macOS (arm64) with the above mentioned build of onnxruntime. I needed to link my executable additionally to the frameworks Update 2: I could trace down some specific error in the Windows build: https://github.com/alfatraining/ort-artifacts-staging/actions/runs/13437315034/job/37542669073#step:8:19525. Looks like something about DX12 is missing? Maybe just a GitHub runner issue? We might need to setup DirectX properly in the workflow? Use a newer Windows? I will investigate! Update 3: When using the |
I also got the WebGPU ep run on Windows. However, one requires |
Hello 👋,
The WebGPU execution provider (WebGPU ep) has been released exclusively for the JavaScript world a year ago. However, since then the WebGPU ep has become available to native platforms via Dawn and soon will be available to Emscripten as well.
To build the WebGPU ep for native platforms with Dawn, one needs to add the
--use_webgpu
flag in thebuild.py
. The options for the WebGPU ep are defined here: https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/providers/webgpu/webgpu_provider_options.hSince the onnxruntime maintainers are putting a lot of effort into the WebGPU execution provider and now it becoming available across all platforms, this might become default/fallback choice of hardware-accelerated inferencing with
ort
:)The text was updated successfully, but these errors were encountered: