CircleCI: Detect number of processors
Currently we hard-code the thread count to 8, which is what the machines which jobs from the ghc/ghc
repository run on. However, such machines are not available to owners of ghc
forks (unless they specifically request a resource limit bump from CircleCI).
We should automatically detect the CPU count to ensure that CI on smaller instances will not fail due to oversubscription.
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.1 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Continuous Integration |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |