-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Better to turn off USE_OPENMP when build with AppleClang #1492
Comments
ping @guolinke |
I think building a single-thread LightGBM version isn't a good choice, since the algorithm is designed for high performance usage. |
Well, libomp can be installed >= el_capitan by homebrew https://github.com/Homebrew/homebrew-core/blob/master/Formula/libomp.rb After install, it says
I haven't figured out how to modify the cmake files, but I guess Apple Clang + OpenMP can be supported soon. |
When I run cmake command as suggested It fails with /usr/local/Cellar/cmake/3.9.1/share/cmake/Modules/FindOpenMP.cmake:402
|
After some googling, I find FindOpenMP.cmake will support Apple Clang in cmake 3.12.0 release https://gitlab.kitware.com/cmake/cmake/merge_requests/1812/diffs |
@levyfan what's version are you using for Apple Clang? |
|
Fixed in #1501. |
It is better to change
to
Thus, macos with default xcode clang can build without openmp, and macos with gcc can build with openmp.
The text was updated successfully, but these errors were encountered: