Skip to content

Commit e7420f8

Browse files
authored
Merge pull request #298 from boegel/petsc_parallel
only use half the cores for building/testing PETSc, since in particular the test suite can be quite memory-hungry
2 parents 50962eb + f67b773 commit e7420f8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,6 +2485,11 @@ def set_maximum(parallel, max_value):
24852485
'*': (divide_by_factor, 2),
24862486
CPU_TARGET_A64FX: (set_maximum, 1),
24872487
},
2488+
'PETSc': {
2489+
# PETSc test suite can be quite memory hungry,
2490+
# so reduce parallelism when running tests (also impacts build)
2491+
'*': (divide_by_factor, 2),
2492+
},
24882493
'QuantumESPRESSO': {
24892494
CPU_TARGET_A64FX: (set_maximum, 6),
24902495
},

0 commit comments

Comments
 (0)