-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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 threading support based on wasi-threads #101538
Comments
eg. ``` autoconf export WASI_SDK_PATH=/opt/wasi-sdk-19.5g0236e959edbc ./Tools/wasm/wasm_build.py wasi-threads build ~/git/toywasm/b.thread/toywasm --wasi --wasi-dir . --wasi-dir ~/git/garbage/py/th2 -- builddir/wasi-threads/python.wasm ~/git/garbage/py/th2/thread.py ``` * I used an unreleased version of wasi-sdk * I used toywasm to test because wasmtime doesn't have necessary functionality yet.
eg. ``` autoconf export WASI_SDK_PATH=/opt/wasi-sdk-19.5g0236e959edbc ./Tools/wasm/wasm_build.py wasi-threads build ~/git/toywasm/b.thread/toywasm --wasi --wasi-dir . --wasi-dir ~/git/garbage/py/th2 -- builddir/wasi-threads/python.wasm ~/git/garbage/py/th2/thread.py ``` * I used an unreleased version of wasi-sdk * I used toywasm to test because wasmtime doesn't have necessary functionality yet.
My concerns about supporting this is that wasi-threads is only at phase 1 of (I believe) 4, so this is not close to being available publicly as part of WASI itself. The WASI SDK support is also not released yet (although I see the OP is the author of the support that's in their As such, I'm unfortunately going to need to reject this feature request. Maybe Singlestore Labs or VMWare via their builds would be up for taking this on? Otherwise I would suggest keeping a fork going with your changes and release your own build if you're trying to get testing for wasi-threads specifically. |
wasmtime support has been landed in the meantime.
|
We can re-evaluate once wasi-sdk has support in a release. |
a prerelease of wasi-sdk with wasi-threads support: https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20%2Bthreads |
now a wasi-sdk release with wasi-threads is available: https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20 |
The "experimental support" and "use at your own risk" parts of the release notes at https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20 are still not enough for me to be willing to take on the support burden of keeping wasi-threads working in |
Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
(cherry picked from commit d8f87cd) Co-authored-by: YAMAMOTO Takashi <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
…06834) (cherry picked from commit d8f87cd) Co-authored-by: YAMAMOTO Takashi <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
Threading support is in, so closing (although it's currently broken; see #111046). |
Feature or enhancement
use wasi-threads via wasi-sdk
Pitch
Previous discussion
Linked PRs
The text was updated successfully, but these errors were encountered: