DOKK / manpages / debian 13 / guess-concurrency / guess_concurrency.1.en
GUESS_CONCURRENCY.PY(1) Generated Python Manual GUESS_CONCURRENCY.PY(1)

guess_concurrency.py

guess_concurrency.py [-h] [--detect METHOD] [--max N] [--min N] [--require-mem MEMLIST]

Guess a suitable concurrency level given constraints from the runtime environment. Environment variables such as DEB_BUILD_OPTIONS, RPM_BUILD_NCPUS and CMAKE_BUILD_PARALLEL_LEVEL are consulted for initial guesses falling back to querying the operating system in order to guess a suitable concurrency level. A user may further restrict the emitted concurrency by specifying a minimum or maximum and by requiring sufficient memory to support a level of concurreny to be available.

supply a processor count or select a detection method (nproc, python or cores)

limit the number of detected cores to a given maximum

limit the number of detected cores to a given minimum

specify per-core required memory as a comma separated list

Helmut Grohne
helmut@subdivi.de

The latest version of guess_concurrency may be downloaded from https://salsa.debian.org/helmutg/guess_concurrency

2025-03-05 guess_concurrency