Skip to content

Add openmp library from llvm#27073

Open
duerrbaby wants to merge 29 commits into
emscripten-core:mainfrom
duerrbaby:libomp
Open

Add openmp library from llvm#27073
duerrbaby wants to merge 29 commits into
emscripten-core:mainfrom
duerrbaby:libomp

Conversation

@duerrbaby

Copy link
Copy Markdown

Original PR here: #25937

@duerrbaby duerrbaby marked this pull request as ready for review June 9, 2026 08:07
@anutosh491

Copy link
Copy Markdown

Thanks a lot for looking into this. I'm looking forward to this for supporting openmp with clang-repl in the browser !

@duerrbaby

duerrbaby commented Jun 10, 2026

Copy link
Copy Markdown
Author

@anutosh491 tests are resolved. But I haven't tried it on my app yet.
EDIT: Confirmed to work on my side.

@duerrbaby

Copy link
Copy Markdown
Author

hi, @JAicewizard have you taken a look yet?

@duerrbaby duerrbaby changed the title !DO NOT MERGE! Test Libomp for new failures Resolve libomp test errors Jun 18, 2026
@duerrbaby

Copy link
Copy Markdown
Author

@sbc100 can you help to review?

@duerrbaby

Copy link
Copy Markdown
Author

@JAicewizard @sbc100 Hi again, does anyone have the time to review and hopefully merge this?
@anutosh491 and I would like to use this soon.

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we call the new directory system/lib/openmp to maybe the llvm directory name?

Can you update the PR title to better reflect what this is? Something like "Add openmp library from llvm" maybe?

Comment thread tools/system_libs.py
Comment thread tools/system_libs.py
Comment thread test/test_other.py Outdated
Comment thread test/test_core.py Outdated
Comment thread test/test_core.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
@duerrbaby duerrbaby changed the title Resolve libomp test errors Add openmp library from llvm Jun 30, 2026
@duerrbaby duerrbaby marked this pull request as draft June 30, 2026 02:46
@duerrbaby duerrbaby marked this pull request as ready for review June 30, 2026 09:18
Comment thread system/lib/update_libomp.py Outdated
copy_tree(upstream_runtime_root, local_src)
copy_tree(upstream_inc, local_inc)

build_dir = os.path.join(upstream_root, "build")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use emscripten/out/ for the build direcotroy?

Maybe something like emscripten/out/build_opemmp ?

(so we don't end up writing to the llvm checkout)

Comment thread system/lib/update_libomp.py Outdated
upstream_root = os.path.join(llvm_dir, "openmp/")
upstream_runtime_root = os.path.join(upstream_root, "runtime/src")
upstream_inc = os.path.join(upstream_root, "install/usr/include")
upstream_build_src = os.path.join(upstream_root, "build/runtime/src")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you set build_dir and install_dir to the build and install directories respectively (and use out/ subdirectores for both).

Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_libomp.py Outdated
Comment thread system/lib/update_openmp.py
Comment thread system/lib/update_openmp.py
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.

4 participants