Skip to content

Commit

Permalink
reduce parallellism when building Qt5 on A64FX systems, due to scarce…
Browse files Browse the repository at this point in the history
… memory
  • Loading branch information
boegel committed Jul 5, 2024
1 parent 2ac4362 commit 3fc6cdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ def post_ready_hook(self, *args, **kwargs):
"""
# 'parallel' easyconfig parameter is set via EasyBlock.set_parallel in ready step based on available cores.
# here we reduce parallellism to only use half of that for selected software,
# to avoid failing builds/tests due to out-of-memory problems
if self.name in ['TensorFlow', 'libxc']:
# to avoid failing builds/tests due to out-of-memory problems;
memory_hungry_build = self.name in ['libxc', 'TensorFlow']
# on A64FX systems, (HBM) memory is typically scarce, so we need to use fewer cores for some builds
memory_hungry_build_a64fx = self.name in ['Qt5']
if memory_hungry_build or memory_hungry_build_a64fx:
parallel = self.cfg['parallel']
if parallel > 1:
self.cfg['parallel'] = parallel // 2
Expand Down

0 comments on commit 3fc6cdc

Please sign in to comment.