Stream: git-wasmtime

Topic: wasmtime / PR #4949 wasi-parallel: implement CPU parallelism


view this post on Zulip Wasmtime GitHub notifications bot (Sep 23 2022 at 18:03):

abrown edited PR #4949 from wasi-parallel-cpu to main:

This change implements [wasi-parallel] in Wasmtime. It addresses only the CPU parallelism (not GPU), since this would introduce additional complexity to an already difficult review (if you're interested about the GPU progress, talk to @egalli). Each commit implements a separate piece to the puzzle. Though most of the changed lines are not the core implementation (see tests, LICENSE, etc.), due to the size of the PR, it may be convenient to look at this commit by commit.

[wasi-parallel]: https://github.com/WebAssembly/wasi-parallel

I see several issues highlighted by this change:

[wasi-threads]: https://github.com/WebAssembly/wasi-threads

Why now? The rationale behind merging this code behind the wasi-parallel feature flag is to enable users to try this out locally and to iterate on this in-tree (e.g., toolchain, GPU parts).

view this post on Zulip Wasmtime GitHub notifications bot (Sep 23 2022 at 18:13):

abrown updated PR #4949 from wasi-parallel-cpu to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 26 2022 at 18:00):

abrown updated PR #4949 from wasi-parallel-cpu to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 26 2022 at 18:16):

abrown updated PR #4949 from wasi-parallel-cpu to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 26 2022 at 18:50):

abrown updated PR #4949 from wasi-parallel-cpu to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2022 at 17:17):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2022 at 17:17):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2022 at 17:17):

alexcrichton created PR review comment:

Personally I'm wary of continuing to take on large unvetted dependencies, even through the optional wasi proposals. The previous wasi proposals we have implemented were largely grandfathered in but I would personally prefer to take this opportunity to not continue to try to grandfather in new features.

Is it possible to slim down the proposal's dependency tree to not rqeuire so many exemptions? Or otherwise are these sorts of crates absolutely required? If so I would personally prefer to have an official vet on-the-record for the inclusion here.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2022 at 17:17):

alexcrichton created PR review comment:

Mind bumping this to 2021 with edition.workspace = true?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 22:14):

alexcrichton closed without merge PR #4949.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 22:14):

alexcrichton commented on PR #4949:

I'm going to close this as this is a pretty old PR at this point and efforts have shifted significantly in the intervening two years. Nowadays most things are happening around "shared-everything-threads" which is the most likely path forward I think. If others disagree though I'm happy to reopen.


Last updated: Dec 23 2024 at 12:05 UTC