Skip to content

[WebGPU] Async, loop-based invoke and output. - #13962

Merged
ScottTodd merged 7 commits into
iree-org:mainfrom
ScottTodd:webgpu-async
Jun 12, 2023
Merged

ScottTodd merged 7 commits into
iree-org:mainfrom
ScottTodd:webgpu-async

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Jun 6, 2023 •

Copy link
Copy Markdown
Member

Redo of #13820, which was closed because GitHub is silly.


Now that #13669 added support for iree_loop_wait_all() to iree_loop_emscripten, this builds on the work that #11017 started to convert the sample WebGPU application to be fully asynchronous[1].

The code should support multiple return values, but I ran into #13809 while working on this.

^[1]: iree_hal_semaphore_wait is still technically synchronous, see the notes in the source code

@ScottTodd ScottTodd added runtime Relating to the IREE runtime library hal/webgpu Runtime WebGPU HAL backend platform/web 🌐 Web-specific build, execution, benchmarking, and deployment labels Jun 6, 2023
@ScottTodd ScottTodd mentioned this pull request Jun 6, 2023
12 of 26 tasks
@ScottTodd
ScottTodd requested a review from benvanik June 6, 2023 16:44
@ScottTodd

Copy link
Copy Markdown
Member Author

Ping? I'm still debugging the (preexisting) memory corruption with 2+ outputs and alignment warnings, but I think I've smoothed out enough of the rough edges in this PR.

Comment thread experimental/web/sample_webgpu/main.c Resolved
@ScottTodd
ScottTodd merged commit e24089d into iree-org:main Jun 12, 2023
@ScottTodd
ScottTodd deleted the webgpu-async branch June 12, 2023 18:31
nhasabni pushed a commit to plaidml/iree that referenced this pull request Aug 24, 2023
Redo of iree-org#13820, which was closed
because GitHub is silly.

---

Now that iree-org#13669 added support for
`iree_loop_wait_all()` to `iree_loop_emscripten`, this builds on the
work that iree-org#11017 started to convert
the sample WebGPU application to be fully asynchronous[1].

The code _should_ support multiple return values, but I ran into
iree-org#13809 while working on this.

^[1]: `iree_hal_semaphore_wait` is still technically synchronous, see
the notes in the source code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hal/webgpu Runtime WebGPU HAL backend platform/web 🌐 Web-specific build, execution, benchmarking, and deployment runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants