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

libomp needs a quick fix #83

Open
BrushXue opened this issue Oct 15, 2022 · 2 comments
Open

libomp needs a quick fix #83

BrushXue opened this issue Oct 15, 2022 · 2 comments

Comments

@BrushXue
Copy link

Recently libomp has been changed to keg-only Homebrew/homebrew-core#112107

So in /wmake/rules/darwin64Clang/general it should be changed to

LINK_OPENMP = -L/usr/local/opt/libomp/lib -lomp
@kazumamatata
Copy link

The above option didn't work for me.
However, I could fix it when I added the include directory.

COMP_OPENMP = -DUSE_OMP -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include
LINK_OPENMP = -L/opt/homebrew/opt/libomp/lib -lomp

@mrklein
Copy link
Owner

mrklein commented Jul 27, 2023

I am not sure if this problem should be solved in the rules files because installation prefix can vary from user to user. I solve OpenMP issues with two environment variables:

FOAM_EXTRA_CXXFLAGS=-I/usr/local/opt/libomp/include
FOAM_EXTRA_LDFLAGS=-L/usr/local/opt/libomp/lib

Here libomp is installed with Homebrew on Intel macBook.

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

3 participants