Skip to content

Commit

Permalink
Fix conditional for skipping DomDecSpecialCasesTest
Browse files Browse the repository at this point in the history
We require numPmeRanksRequested ≤ numPPRanksRequested in DD.

Only occurs when running the test binary manually with non-default flags.
  • Loading branch information
al42and authored and mabraham committed Sep 4, 2024
1 parent bddfe80 commit b48a0e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/programs/mdrun/tests/domain_decomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ std::optional<std::string> reasonsTestIsInvalid(MdpFlavor mdpFlavor,
errorReasons.appendIf(numRanks > 1 && separatePmeRankFlavor == SeparatePmeRankFlavor::None
&& pmeFlavor == PmeFlavor::Gpu,
"Cannot use GPU PME offload with multiple PME+PP ranks");
errorReasons.appendIf(numRanks == 2 && separatePmeRankFlavor == SeparatePmeRankFlavor::Two,
"Cannot use two separate PME ranks when there are only two ranks total");
errorReasons.appendIf(
numRanks < 4 && separatePmeRankFlavor == SeparatePmeRankFlavor::Two,
"Cannot use two separate PME ranks when there are less than four ranks total");
errorReasons.finishContext();
if (errorReasons.isEmpty())
{
Expand Down

0 comments on commit b48a0e9

Please sign in to comment.