Skip to content
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

scikit-learn SVM's consumes all CPU cores #81

Open
HiroIshida opened this issue Jan 30, 2025 · 0 comments
Open

scikit-learn SVM's consumes all CPU cores #81

HiroIshida opened this issue Jan 30, 2025 · 0 comments

Comments

@HiroIshida
Copy link
Owner

HiroIshida commented Jan 30, 2025

Do this

export OMP_NUM_THREADS=1
export MKL_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1

If the process is forked inside:
use

with threadpoolctl.threadpool_limits(limits=1):
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant