drugforge.alchemy.cli.utils.get_cpus

drugforge.alchemy.cli.utils.get_cpus(cpus: Literal['auto', 'all'] | int) int[source]

Work out the number of cpus to use based on the request and the machine.

Args:

cpus: The number of cpus to use or a supported setting, “auto” or “all”.

Returns:

The number of cpus to use.