Skip to content

Commit

Permalink
only use half the cores when building Clang, since build is quite mem…
Browse files Browse the repository at this point in the history
…ory hungry
  • Loading branch information
boegel committed Jul 6, 2024
1 parent 4b3a053 commit 595ebd0
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 @@ -82,7 +82,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', 'libxc']:
if self.name in ['Clang', 'libxc', 'TensorFlow']:
parallel = self.cfg['parallel']
if parallel > 1:
self.cfg['parallel'] = parallel // 2
Expand Down

0 comments on commit 595ebd0

Please sign in to comment.