Skip to content

Commit d531948

Browse files
committed
add warning about default test order causing problems with MPI
1 parent 0aeb818 commit d531948

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/command-line.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ Using `random-device` asks for `std::random_device` to be used instead.
457457
If your implementation provides working `std::random_device`, it should
458458
be preferred to using `time`. Catch2 uses `std::random_device` by default.
459459

460+
> [!WARNING]
461+
> You should not use this option when launching Catch2 tests on multiples processes that require synchronous communication,
462+
> (e.g., Message Passing Interface (MPI) code),
463+
> because the test order of execution will **not** be indentical on all processes.
460464
461465
<a id="libidentify"></a>
462466
## Identify framework and version according to the libIdentify standard

0 commit comments

Comments
 (0)