[Openmp-commits] [PATCH] D142593: Support for wasm32 architecture
arsnyder16 via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 25 17:59:53 PST 2023
arsnyder16 created this revision.
arsnyder16 added reviewers: penzn, tianshilei1992.
arsnyder16 added a project: OpenMP.
Herald added subscribers: s.egerton, sunfish, simoncook, krytarowski.
Herald added a project: All.
arsnyder16 requested review of this revision.
Herald added subscribers: openmp-commits, pcwang-thead, sstefan1, aheejin.
Herald added a reviewer: jdoerfert.
These are changes i made to build a static library of libomp to run on wasm32
using the emscripten tool chain
emcmake cmake \
-DOPENMP_STANDALONE_BUILD=ON \
-DOPENMP_ENABLE_OMPT_TOOLS=OFF \
-DOPENMP_ENABLE_LIBOMPTARGET=OFF \
-DLIBOMP_HAVE_OMPT_SUPPORT=OFF \
-DLIBOMP_OMPT_SUPPORT=OFF \
-DLIBOMP_OMPD_SUPPORT=OFF \
-DLIBOMP_USE_DEBUGGER=OFF \
-DLIBOMP_FORTRAN_MODULES=OFF \
-DLIBOMP_ENABLE_SHARED=OFF \
-DLIBOMP_ARCH=wasm32 \
-DOPENMP_ENABLE_LIBOMPTARGET_PROFILING=OFF \
.
emmake make -j
downstream libaries need to compile with
-pthread -fopenmp=libomp`
then link to libomp.a that was built above
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142593
Files:
openmp/runtime/CMakeLists.txt
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_gsupport.cpp
openmp/runtime/src/kmp_os.h
openmp/runtime/src/kmp_platform.h
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/z_Linux_asm.S
openmp/runtime/src/z_Linux_util.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142593.492302.patch
Type: text/x-patch
Size: 18322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230126/95d8042a/attachment-0001.bin>
More information about the Openmp-commits
mailing list