A single process pool is not something to boast about (#26837)

This commit is contained in:
Harmen Stoppels 2021-10-20 01:04:52 +02:00 committed by GitHub
parent 7dc0ca4ee6
commit 1b634f05e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1155,9 +1155,9 @@ def _concretize_separately(self, tests=False):
# TODO: revisit this print as soon as darwin is parallel too # TODO: revisit this print as soon as darwin is parallel too
msg = 'Starting concretization' msg = 'Starting concretization'
if sys.platform != 'darwin': if sys.platform != 'darwin':
msg = msg + ' pool with {0} processes'.format( pool_size = spack.util.parallel.num_processes(max_processes=max_processes)
spack.util.parallel.num_processes(max_processes=max_processes) if pool_size > 1:
) msg = msg + ' pool with {0} processes'.format(pool_size)
tty.msg(msg) tty.msg(msg)
concretized_root_specs = spack.util.parallel.parallel_map( concretized_root_specs = spack.util.parallel.parallel_map(