[Openmp-commits] [llvm] [openmp] [openmp][wasm] Allow openmp to compile and run under emscripten toolchain (PR #95169)

via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 12 17:04:49 PDT 2024


arsnyder16 wrote:

> I haven't dug into this PR much yet review-wise but I think it is on the right track:
> 
> - I was shaky at best on the differences between `InternalLinkage` versus `ExternalLinkage` when I originally pieced #71297 together so this seems to make sense
> 
> - it is true that Emscripten and WASI have quite different paradigms so it is plausible that we need to handle the Emscripten bits differently
> 
> 
> 
> I tested this PR out in a [simplistic WASI example](https://github.com/abrown/wasm-openmp-examples) and everything seemed to work as before on the WASI side. This "OpenMP + WebAssembly" support is still very experimental so I think that is probably the best we can do for now. Of course, it would be useful to have an Emscripten version of that around — @arsnyder16, do you have something like that?

Yea I can supply an emscripten variant, I'll fork your branch, I'll add a few more openmp scenarios as well to it to mimic the various link scenarios I encountered as well 

https://github.com/llvm/llvm-project/pull/95169


More information about the Openmp-commits mailing list