Skip to content

Commit cf803cb

Browse files
kshyattKatharine Hyatt
andauthored
Run with limited workers per Enzyme job in CI (#289)
Co-authored-by: Katharine Hyatt <katharine.hyatt@ugent.be>
1 parent c3cf149 commit cf803cb

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎test/Project.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MatrixAlgebraKit = {path = ".."}
2727
Aqua = "0.6, 0.7, 0.8"
2828
ChainRulesTestUtils = "1"
2929
EnzymeTestUtils = "0.2.5"
30-
ParallelTestRunner = "2"
30+
ParallelTestRunner = "2.9"
3131
Random = "1"
3232
StableRNGs = "1"
3333
Test = "1"

‎test/runtests.jl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ if filter_tests!(testsuite, args)
3636
end
3737
end
3838

39-
runtests(MatrixAlgebraKit, args; testsuite, init_code = :(const fast_tests = $fast))
39+
# Enzyme test workers peak at 5-7 GB (qr, lq, orthnull on Julia 1.10), so the default
40+
# assumption of 2 GiB per worker oversubscribes memory on CI runners and makes them swap
41+
memory_per_worker = any(startswith("enzyme/") ∘ first, testsuite) ? 6 * 2^30 : 2 * 2^30
42+
43+
runtests(MatrixAlgebraKit, args; testsuite, init_code = :(const fast_tests = $fast), memory_per_worker)

0 commit comments

Comments
 (0)