diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index d4e02d3aa2..cfa25052bd 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -2422,8 +2422,8 @@ def set_parallel(self): else: par = min(int(par), int(cfg_par)) - par = det_parallelism(par, maxpar=self.cfg['max_parallel']) - self.log.info("Setting parallelism: %s" % par) + par = det_parallelism(par=par, maxpar=self.cfg['max_parallel']) + self.log.info(f"Setting parallelism: {par}") self.cfg.parallel = par def remove_module_file(self): diff --git a/easybuild/framework/easyconfig/default.py b/easybuild/framework/easyconfig/default.py index aaed4a6891..78c6a879cc 100644 --- a/easybuild/framework/easyconfig/default.py +++ b/easybuild/framework/easyconfig/default.py @@ -108,7 +108,7 @@ BUILD], 'hidden': [False, "Install module file as 'hidden' by prefixing its version with '.'", BUILD], 'installopts': ['', 'Extra options for installation', BUILD], - 'maxparallel': [16, 'Max degree of parallelism', BUILD], + 'maxparallel': [None, 'Max degree of parallelism', BUILD], 'module_only': [False, 'Only generate module file', BUILD], 'patches': [[], "List of patches to apply", BUILD], 'prebuildopts': ['', 'Extra options pre-passed to build command.', BUILD], diff --git a/easybuild/tools/options.py b/easybuild/tools/options.py index 137d945e19..5e9559f6cc 100644 --- a/easybuild/tools/options.py +++ b/easybuild/tools/options.py @@ -496,8 +496,9 @@ def override_options(self): 'output-style': ("Control output style; auto implies using Rich if available to produce rich output, " "with fallback to basic colored output", 'choice', 'store', OUTPUT_STYLE_AUTO, OUTPUT_STYLES), - 'parallel': ("Specify (maximum) level of parallelism used during build procedure", - 'int', 'store', None), + 'parallel': ("Specify (maximum) level of parallelism used during build procedure " + "(actual value is determined by available cores + 'max_parallel' easyconfig parameter)", + 'int', 'store', 16), 'parallel-extensions-install': ("Install list of extensions in parallel (if supported)", None, 'store_true', False), 'pre-create-installdir': ("Create installation directory before submitting build jobs",