Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jeremiedbb
Copy link
Member

Closes #29145

This PR avoids to instantiate the ThreadpoolController, and therefore calling the OpenMP or OpenBLAS API, at import time. Instead, the controller is created only when needed for the first time.

It should make the behavior similar to before 1.5.0. @JCoder01 or @mabl could you test that this branch prevents the dead locks you observed ?

Copy link

github-actions bot commented Jun 11, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 0f42bd1. Link to the linter CI: here

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lesteve
Copy link
Member

lesteve commented Jun 13, 2024

Thanks a lot, merging!

@lesteve lesteve merged commit 6595229 into scikit-learn:main Jun 13, 2024
jeremiedbb added a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 2, 2024
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks
jeremiedbb added a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 2, 2024
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V1.5 randomly hangs on import
3 participants