Skip to content

Commit 3fe1f68

Browse files
committed
mark support for installing extensions in parallel as experimental + add --parallel-extensions-install configuration option to opt-in to it
1 parent 6053c0c commit 3fe1f68

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,8 @@ def install_extensions(self, install=True, parallel=False):
16461646
"""
16471647
self.log.debug("List of loaded modules: %s", self.modules_tool.list())
16481648

1649-
if parallel:
1649+
if build_option('parallel_extensions_install') and parallel:
1650+
self.log.experimental("installing extensions in parallel")
16501651
self.install_extensions_parallel(install=install)
16511652
else:
16521653
self.install_extensions_sequential(install=install)

easybuild/tools/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def mk_full_default_path(name, prefix=DEFAULT_PREFIX):
269269
'module_extensions',
270270
'module_only',
271271
'package',
272+
'parallel_extensions_install',
272273
'read_only_installdir',
273274
'remove_ghost_install_dirs',
274275
'rebuild',

easybuild/tools/options.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ def override_options(self):
454454
'choice', 'store', OUTPUT_STYLE_AUTO, OUTPUT_STYLES),
455455
'parallel': ("Specify (maximum) level of parallellism used during build procedure",
456456
'int', 'store', None),
457+
'parallel-extensions-install': ("Install list of extensions in parallel (if supported)",
458+
None, 'store_true', False),
457459
'pre-create-installdir': ("Create installation directory before submitting build jobs",
458460
None, 'store_true', True),
459461
'pretend': (("Does the build/installation in a test directory located in $HOME/easybuildinstall"),

0 commit comments

Comments
 (0)