Skip to content

Commit

Permalink
Use only half the cores to build OpenFOAM
Browse files Browse the repository at this point in the history
  • Loading branch information
Neves-P authored Jan 3, 2024
1 parent 61e57a0 commit 98b51a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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']:
if self.name in ['TensorFlow'] or self.name in ['OpenFOAM']:
parallel = self.cfg['parallel']
if parallel > 1:
self.cfg['parallel'] = parallel // 2
Expand Down

0 comments on commit 98b51a9

Please sign in to comment.