Skip to content

Set global CPU_COUNT variable for all CI jobs

Duncan Macleod requested to merge duncanmmacleod/lalsuite:conda-cpu-count into master

Description

This MR abstracts the number of cores available on the runners to a single global variable, then reconfigures the various build jobs to use it. In particular the variable is called CPU_COUNT which is what conda build natively uses, and the rpmbuild variable was subtly fixed from RPM_BUILD_CPUS to RPM_BUILD_NCPUS.

This probably has the impact of slowing down the pipeline, but it will make the lalsuite CI a better citizen of the runner, since jobs will no longer be trying to parallelise over the whole 32/64-core machine.

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.

Review Status

Merge request reports

Loading