Skip to content

Commit

Permalink
Restore message when concretizing in parallel (spack#47663)
Browse files Browse the repository at this point in the history
It was lost in spack#44843
  • Loading branch information
alalazo authored Nov 19, 2024
1 parent 066666b commit f182032
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/spack/spack/concretize.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ def concretize_separately(
# TODO: support parallel concretization on macOS and Windows
num_procs = min(len(args), spack.config.determine_number_of_jobs(parallel=True))

msg = "Starting concretization"
if sys.platform not in ("darwin", "win32") and num_procs > 1:
msg += f" pool with {num_procs} processes"
tty.msg(msg)

for j, (i, concrete, duration) in enumerate(
spack.util.parallel.imap_unordered(
_concretize_task, args, processes=num_procs, debug=tty.is_debug(), maxtaskperchild=1
Expand Down

0 comments on commit f182032

Please sign in to comment.