-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
SEGFAULT on MacOS with scikit-learn==1.0.0 #7355
Comments
Any chance this is the same issue with #7039 ? |
I am not sure. From what can I read there downgrading limpomp to 11 helped. In my case, it does not. |
@hcho3 might have better insight. My guess is just scikit-learn < 1.0 ships older libomp while scikit-learn==1.0 ships libomp >= 12.0. |
With both versions of scikit-learn I get the same version for dylib
when I call It also seems that xgboost is not using scikit's version of libomp (when I uninstalled libomp with brew and left scikits libomp xgboost didn't work). |
You are absolutely right! Please refer to microsoft/LightGBM#4632 (comment) and scikit-learn/scikit-learn#21227. |
Bug fix in scikit-learn is merged. |
xgboost segfaults in combination with scikit-learn==1.0.0 and works fine with scikit-learn==0.24
Steps to reproduce:
scikit-learn==1.0.0
andxgboost==1.5.0
I found out that scikit-learn brings its own version of libomp library together with the package. It is stored in
sklearn/.dylibs/libomp.dylib
. When I remove it from sklearn segfault does not happen. When libomp is present in sklearn and I remove a global version from the computer xgboost does not work since it cannot find the library. It shows that xgboost is actually not using the libomp library from scikit-learn but there must be some coincidence.When downgrading scikit-learn to 0.24 it still ships its own version of libomp but the segfaul does not happen.
The text was updated successfully, but these errors were encountered: