Skip to content

Commit

Permalink
only use half the cores for Qt5 when building for A64FX
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Jul 7, 2024
1 parent 3fc6cdc commit b07445e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def post_ready_hook(self, *args, **kwargs):
# 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']
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
memory_hungry_build_a64fx = cpu_target == CPU_TARGET_A64FX and self.name in ['Qt5']
if memory_hungry_build or memory_hungry_build_a64fx:
parallel = self.cfg['parallel']
if parallel > 1:
Expand Down

0 comments on commit b07445e

Please sign in to comment.