Gromacs  2022.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions
mpitest.h File Reference
#include "config.h"
#include <functional>
#include <string>
#include <type_traits>
+ Include dependency graph for mpitest.h:
+ This graph shows which files directly or indirectly include this file:

Description

Helper functions for MPI tests to make thread-MPI look like real MPI.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

class  gmx::test::AllowAnyRankCount
 Helper for GMX_MPI_TEST to permit any rank count. More...
 
class  gmx::test::RequireRankCount< requiredNumRanks >
 Helper for GMX_MPI_TEST to permit only a specific rank count. More...
 
class  gmx::test::RequireMinimumRankCount< minimumNumRanks >
 Helper for GMX_MPI_TEST to permit only a specific rank count. More...
 

Macros

#define GMX_MPI_TEST_INNER
 Implementation of MPI test runner for thread-MPI. More...
 
#define GMX_MPI_TEST(RankRequirement)
 Declares that this test is an MPI-enabled unit test and expresses the conditions under which it can run. More...
 

Functions

int gmx::test::getNumberOfTestMpiRanks ()
 Returns the number of MPI ranks to use for an MPI test. More...
 
bool gmx::test::threadMpiTestRunner (std::function< void()> testBody)
 Helper function for GMX_MPI_TEST().
 

Macro Definition Documentation

#define GMX_MPI_TEST_INNER

Implementation of MPI test runner for thread-MPI.

See documentation GMX_MPI_TEST