-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Wasm] AOT support for threading-enabled runtime #70489
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionBuilding AOT images with threading enabled is failing. Reproduction StepsWhen building AOT images with threading enabled, the following lines: runtime/src/mono/wasm/runtime/driver.c Lines 479 to 482 in 3d74b00
cause the following error:
@lambdageek mentioned that the environment needs to have
runtime/src/mono/mono/mini/mini.h Lines 2931 to 2937 in e3a4db9
Expected behaviorCompilation succeeds. Actual behaviorSee above. Regression?No Known WorkaroundsNone ConfigurationOther informationNo response
|
Ideally we can produce a single Another thing the flag could control is whether LLVM is allowed to use post-MVP atomics opcodes |
@lewing This issue was using a similar change in the runtime (with safe point enabled) and it is still present. |
@kg should this be moved to 8.0? |
I think so. |
I think we're done here, actually. The AOT compiler now has a demo: https://lambdageek.dev/dotnet-wasm-raytracer/ (AOT+SIMD+threads) |
Description
Building AOT images with threading enabled is failing.
Reproduction Steps
When building AOT images with threading enabled, the following lines:
runtime/src/mono/wasm/runtime/driver.c
Lines 479 to 482 in 3d74b00
cause the following error:
@lambdageek mentioned that the environment needs to have
MONO_THREADS_SUSPEND=coop
set before invoking the compiler, but the compilation fails with the following:runtime/src/mono/mono/mini/mini.h
Lines 2931 to 2937 in e3a4db9
Expected behavior
Compilation succeeds.
Actual behavior
See above.
Regression?
No
Known Workarounds
None
Configuration
213b4d4
Other information
No response
The text was updated successfully, but these errors were encountered: