From f67b7734f047bf612454e0701e19497e0ec8b88f Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Thu, 3 Sep 2026 17:04:08 +0200 Subject: [PATCH] only use half the cores for building/testing PETSc, since in particular the test suite can be quite memory-hungry --- eb_hooks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eb_hooks.py b/eb_hooks.py index 81fbfc62..b2451392 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -2485,6 +2485,11 @@ def set_maximum(parallel, max_value): '*': (divide_by_factor, 2), CPU_TARGET_A64FX: (set_maximum, 1), }, + 'PETSc': { + # PETSc test suite can be quite memory hungry, + # so reduce parallelism when running tests (also impacts build) + '*': (divide_by_factor, 2), + }, 'QuantumESPRESSO': { CPU_TARGET_A64FX: (set_maximum, 6), },