Skip to content

CI Enable parallel builds#14397

Merged
thomasjpfan merged 1 commit intoscikit-learn:masterfrom
rth:parallel-build-azure
Jul 18, 2019
Merged

CI Enable parallel builds#14397
thomasjpfan merged 1 commit intoscikit-learn:masterfrom
rth:parallel-build-azure

Conversation

@rth
Copy link
Copy Markdown
Member

@rth rth commented Jul 17, 2019

As illustrated in #12676 (comment) by @dimrozakis, parallel build does seem to work (despite earlier reports that they weren't).

This attempts to enable those in CI. The typical strategy for multi-core compilation is to use CPU_CORES + 1 to compensate for I/O.

Let's see if this helps with run time. I haven't found a way to pass the -j flag to the setup.py bdist_wheels yet (that is used e.g. for Windows builds on Azure).

A better improvement would be to use ccache. Caching was just added to Azure Pipelines microsoft/azure-pipelines-yaml#113 but it doesn't sound like it's as good as in Circle CI. Might be worth investigating.

FYI @jeremiedbb @thomasjpfan

@rth rth changed the title CI Enable paralell builds CI Enable parallel builds Jul 17, 2019
@thomasjpfan
Copy link
Copy Markdown
Member

For reference, the caching docs are here: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops

In another PR, we can explore if we can use ccache to decrease build times.

@rth
Copy link
Copy Markdown
Member Author

rth commented Jul 17, 2019

On master Linux & MacOS builds are 13-16 min, while in this PR they are 12-14min. So it is a bit faster.

@thomasjpfan thomasjpfan merged commit 5d95b7a into scikit-learn:master Jul 18, 2019
@thomasjpfan
Copy link
Copy Markdown
Member

Thank you! @rth

@rth rth deleted the parallel-build-azure branch July 18, 2019 12:27
rth added a commit that referenced this pull request Jul 19, 2019
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

Successfully merging this pull request may close these issues.

3 participants