Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Jan 4, 2024

WARNING: probably our OpenMP errors are due to the fact that we do not enable WASM's atomics, and we may be running into a race condition when multiple threads operate on the same WASM module.

WAVM seems to be happy with this, but WAMR does not allow threads to share a module's memory unless the module has been compiled with the --shared-memory flag, which requires building wasi-libc and the toolchain with atomics and bulk-memory.

https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/embed_wamr.md#execute-wasm-functions-in-multiple-threads

@csegarragonz csegarragonz force-pushed the omp-wamr branch 2 times, most recently from 4876b26 to 47afe2c Compare January 29, 2024 13:28
@csegarragonz csegarragonz mentioned this pull request Mar 5, 2024
12 tasks
@csegarragonz csegarragonz deleted the omp-wamr branch October 12, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants