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

Added steps for MacOS Ventura M-silicon support #2

Open
sapertuz opened this issue Aug 10, 2023 · 1 comment
Open

Added steps for MacOS Ventura M-silicon support #2

sapertuz opened this issue Aug 10, 2023 · 1 comment

Comments

@sapertuz
Copy link

sapertuz commented Aug 10, 2023

for the code to compile on MacOS you should:

First, install the macOS command line tools:

$ xcode-select --install 

Install the LLVM OpenMP library.

$ brew install libomp llvm

Set the following environment variables:

$ export CC=/usr/bin/clang
$ export CXX=/usr/bin/clang++
$ export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
$ export CFLAGS="$CFLAGS -I/opt/homebrew/opt/libomp/include"
$ export CXXFLAGS="$CXXFLAGS -I/opt/homebrew/opt/libomp/include"
$ export LDFLAGS="$LDFLAGS -Wl,-rpath,/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib -lomp"

Feel free to add this to the readme. Thank you

@sapertuz sapertuz changed the title Added code for MacOS Ventura M-silicon support Added steps for MacOS Ventura M-silicon support Aug 10, 2023
@NgrNxk
Copy link

NgrNxk commented Nov 5, 2023

Thank you! Worked perfectly on my M1 MBP (still on Ventura).

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

2 participants