-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
CMake can't find libomp on Apple M1 #5549
Comments
The new version of libomp (15.0) is keg-only, which means that we need to specify extra compilation flags to enable OpenMP. LightGBM used to specify these flags before. See dmlc/xgboost#8384 for an example fix. |
Thanks @IliaOzhmegov for the report, and to @hcho3 for the extra information! I've marked this Example builds from #5559:
Workarounds If you're finding this from search and it's still open, that means we haven't fixed it yet. Option 1: downgrade to OpenMP Option 2: compile LightGBM without OpenMP support
|
Hi! |
Yes, #5563 fixed this issue. Please upgrade to the latest commit on |
thanks for such a quick response! 2 follow up questions:
|
@michaelgfeldman the CMake cache in the folder from which you were launching the command So in order to clean cache you should run |
I'd be very very surprised to learn that using a When I try running that command. pip install git+https://github.com/microsoft/LightGBM.git#egg=lightgbm I get the following error basically saying that.
To build a development version of the Python package from source, follow the instructions at https://github.com/microsoft/LightGBM/tree/master/python-package#install-from-github. |
Hi, |
The next release will be v4.0.0. You can subscribe to #5153 to be notified when it's released. We're trying to get it out, but suffering from a severe lack of maintainer availability and attention. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
CMake can't find libomp while using AppleClang Compiler.
Reproducible example
When running
pip install lightgbm
it tries to compile or link the lightgbm but it can't find libomp library.Environment info
Apple M1
AppleClang 13.1.6.13160021
AppleClang 13.1.6.13160021
gcc 12.2.0
cmake 3.24.2
lightgbm 3.3.3
libomp 15.0.2
Python3.10
Command I used to install LightGBM
The text was updated successfully, but these errors were encountered: