Gromacs  2019
 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:

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...