summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-12-13 10:08:22 +0100
committerMichał Górny <mgorny@gentoo.org>2016-12-18 14:46:42 +0100
commitd9cde86b8e01a04b09c3cc7fb328d92428594828 (patch)
tree92ec1e06b3633a7f201e8262b143bd92b3291ef6 /sci-libs/coinor-blis
parentmultiprocessing.eclass: Fix handling multiple short options (e.g. -kj) (diff)
downloadgentoo-d9cde86b8e01a04b09c3cc7fb328d92428594828.tar.gz
gentoo-d9cde86b8e01a04b09c3cc7fb328d92428594828.tar.bz2
gentoo-d9cde86b8e01a04b09c3cc7fb328d92428594828.zip
multiprocessing.eclass: Introduce get_nproc() to get no of CPUs
Introduce get_nproc(), a portable 'nproc' wrapper. It uses either 'nproc' or a fallback Python multiprocessing module call to attempt to determine the number of available processing units. This can be used e.g. to determine a safe number of jobs to run when MAKEOPTS specifies unlimited --jobs and the build system in question does not support --load-average.
Diffstat (limited to 'sci-libs/coinor-blis')
0 files changed, 0 insertions, 0 deletions