-
Notifications
You must be signed in to change notification settings - Fork 385
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
Test failure: TestLtrMsmarcoDocument on macOS 12.1 #938
Comments
That's weird. Just rerun this test on orca and it passed
|
Seems to be a macOS problem... I'm trying to debug. @stephaniewhoo do you have access to a macOS machine you can try also? |
Seems to be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92061 |
This seems to be a known issue and doesn't appear to have been resolved yet: microsoft/LightGBM#4229 |
I also get it worked on orca. Will try on my macos machine too. |
Yes, confirmed that the test case passes on |
Finally the test is complete on my laptop (macOS) and it passes as well. My system is also MacOS Monterey 12.1 (21C52) |
Same as Stephanie, the test also passed on my macos machine, my system is macOS Big Sur version 11.5.2 |
Trying out the example here: microsoft/LightGBM#4229 % python
Python 3.8.12 (default, Oct 12 2021, 06:23:56)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lightgbm import LGBMClassifier
>>> import numpy as np
>>> from concurrent.futures import ThreadPoolExecutor
>>>
>>> x = np.random.random((200, 4))
>>> y = x.sum(axis=1) >= 2
>>>
>>>
>>> def myfunc(a=7):
... test = LGBMClassifier().fit(x, y)
... print(test.predict(x))
...
>>>
>>> with ThreadPoolExecutor(20) as tpe:
... print(list(tpe.map(myfunc, range(20))))
...
zsh: segmentation fault python Indeed, I get a seg fault - this is on macOS 12.1. Additional details: % pip list | grep lightgbm
lightgbm 3.3.2
% brew info libomp
libomp: stable 13.0.0 (bottled)
LLVM's OpenMP runtime library
https://openmp.llvm.org/
/usr/local/Cellar/libomp/13.0.0 (9 files, 1.6MB) *
Poured from bottle on 2022-01-12 at 21:15:03
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libomp.rb
License: MIT
==> Dependencies
Build: cmake ✘
==> Analytics
install: 52,037 (30 days), 228,792 (90 days), 1,152,680 (365 days)
install-on-request: 7,733 (30 days), 31,763 (90 days), 140,940 (365 days)
build-error: 10 (30 days) |
I have tested the above script on my macOS with macOS version 11.5.2, libomp version 13.0.0 and lightgbm 3.2.2 . No segmentation fault is found, everything works just fine. The reason for the test failure was narrowed down to the version of macOS. |
Waiting for upstream fixes. No further action for now. |
I just updated to libomp 14.0.0 via |
Update, still having this issue:
And:
|
Even with:
Per microsoft/LightGBM#4229 (comment) - didn't help. |
Trying this again:
Still getting same error. |
Interestingly, on the M1 chip,
|
Works fine on M series processors... simply solution, avoid x86 on Mac ;) |
Test failure on my iMac Pro, macOS Monterrey 12.1... any ideas?
The text was updated successfully, but these errors were encountered: