diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-11-19 13:28:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 12:28:14 +0000 |
commit | f18203233788f86aaf43b27495570268857c9c19 (patch) | |
tree | e32a2b03350203a508f3f2e6d97a59770f44dc87 | |
parent | 066666b7b1b36b8c7b0624f742f0b1248fadc283 (diff) | |
download | spack-f18203233788f86aaf43b27495570268857c9c19.tar.gz spack-f18203233788f86aaf43b27495570268857c9c19.tar.bz2 spack-f18203233788f86aaf43b27495570268857c9c19.tar.xz spack-f18203233788f86aaf43b27495570268857c9c19.zip |
Restore message when concretizing in parallel (#47663)
It was lost in #44843
-rw-r--r-- | lib/spack/spack/concretize.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index cccfc02bd0..65ad755e7e 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -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 |