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

Disable OpenMP for AppleClang<13 by default #1018

Closed
wants to merge 1 commit into from

Conversation

hsinfan1996
Copy link
Contributor

@hsinfan1996 hsinfan1996 commented Jan 4, 2023

Merge into PR #1017

@hsinfan1996
Copy link
Contributor Author

@beckermr
Copy link
Collaborator

beckermr commented Jan 5, 2023

I don't follow this pr at all. We've built openmp on apple for a long time now. The real problem is the cmake changes, right?

@beckermr
Copy link
Collaborator

beckermr commented Jan 5, 2023

Can't we just roll back the changes made originally for cmake?

@hsinfan1996
Copy link
Contributor Author

hsinfan1996 commented Jan 5, 2023

Building ccl with AppleClang is mostly fine. However, there will be ImportError in python if libomp is found but not linked correctly. For OpenMP to work with AppleClang12, we need to link libomp with link_libraries in cmake (added in PR1000, but it breaks conda-forge build for arm64) or users need to set LDFLAGS manually. Now I am trying to revert the changes made for cmake while preventing the ImportError problem.

@hsinfan1996 hsinfan1996 closed this Jan 5, 2023
@hsinfan1996 hsinfan1996 deleted the force_openmp_flag branch January 6, 2023 06:07
@hsinfan1996 hsinfan1996 mentioned this pull request Jan 6, 2023
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.

2 participants