Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
mpitest.h File Reference
#include "config.h"
#include <functional>
#include <type_traits>
#include "gromacs/utility/basenetwork.h"
+ 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

Macros

#define GMX_MPI_TEST(expectedRankCount)   ASSERT_EQ(expectedRankCount, ::gmx::test::getNumberOfTestMpiRanks())
 Declares that this test is an MPI-enabled unit test. 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().