Skip to content

Commit 123e17b

Browse files
committed
add easystack to test fix for limiting parallellism
1 parent 6095779 commit 123e17b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
easyconfigs:
2+
- GCC-13.3.0.eb

eb_hooks.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def post_ready_hook(self, *args, **kwargs):
218218
else:
219219
curr_parallel = self.cfg['parallel']
220220

221-
if parallel == 1:
221+
if curr_parallel == 1:
222222
return # no need to limit if already using 1 core
223223

224224
# get CPU target
@@ -255,8 +255,9 @@ def post_ready_hook(self, *args, **kwargs):
255255
self.cfg.parallel = new_parallel
256256
else:
257257
self.cfg['parallel'] = new_parallel
258-
msg = "limiting parallelism to %s (was %s) for %s on %s to avoid out-of-memory failures during building/testing"
259-
print_msg(msg % (new_parallel, parallel, self.name, cpu_target), log=self.log)
258+
msg = "limiting parallelism to %s (was %s, derived parallelism %s) for %s on %s "
259+
msg+ "to avoid out-of-memory failures during building/testing"
260+
print_msg(msg % (new_parallel, curr_parallel, session_parallel, self.name, cpu_target), log=self.log)
260261

261262

262263
def pre_prepare_hook(self, *args, **kwargs):

0 commit comments

Comments
 (0)