Skip to content

Commit

Permalink
Merge pull request #632 from boegel/2023.06-software.eessi.io_a64fx_P…
Browse files Browse the repository at this point in the history
…araView-foss-2023a

{2023.06,a64fx}[foss/2023a] ParaView 5.11.2
  • Loading branch information
bedroge authored Jul 7, 2024
2 parents 767eaf5 + b07445e commit f64a20d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ easyconfigs:
- foss-2023a.eb
- SciPy-bundle-2023.07-gfbf-2023a.eb
- ESPResSo-4.2.2-foss-2023a.eb
- ParaView-5.11.2-foss-2023a.eb
8 changes: 6 additions & 2 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ 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
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:
self.cfg['parallel'] = parallel // 2
Expand Down

0 comments on commit f64a20d

Please sign in to comment.