Skip to content
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

How to enable OpenMP on macOS (clang) #3058

Open
mahnunchik opened this issue Aug 10, 2024 · 0 comments
Open

How to enable OpenMP on macOS (clang) #3058

mahnunchik opened this issue Aug 10, 2024 · 0 comments

Comments

@mahnunchik
Copy link

How to enable OpenMP on macOS (clang)?

  • Node Version: node v20.12.2, npm 10.5.0
  • Platform: Darwin MacBook-Pro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
  • Compiler:
cc -v
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  • Module: Any with OpenMP

Working example:

export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
node-gyp rebuild

How to specify CPPFLAGS in binding.gyp config?

More info: https://open-box.readthedocs.io/en/latest/installation/openmp_macos.html

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

No branches or pull requests

1 participant