Skip to content

MNT set OMP_NUM_THREADS=2 for cibuildwheel [cd build] #18807

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

Merged
merged 6 commits into from
Nov 12, 2020

Conversation

ogrisel
Copy link
Member

@ogrisel ogrisel commented Nov 10, 2020

Let's check if it's possible to set the usual CI env variables to avoid network connections and oversubscription during the tests run by cibuildwheel.

Hopefully this also impacts the pytest env but I am not that
sure.
@ogrisel ogrisel marked this pull request as ready for review November 12, 2020 15:01
@ogrisel
Copy link
Member Author

ogrisel commented Nov 12, 2020

https://github.com/scikit-learn/scikit-learn/actions/runs/359826369 has shown that the env is passed correctly to the pytest step. I removed the debug info.

This does not improve speed (maybe a bit due to skipped downloads) because the github workers only have 2 cores at the VM level instead of the docker level but this is better to set those env variables explicitly to be future proof.

@ogrisel ogrisel merged commit ae5799f into scikit-learn:master Nov 12, 2020
@ogrisel ogrisel deleted the cibuildwheel-openmp-env branch November 12, 2020 15:04
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.

1 participant