42 #ifndef TEUCHOS_GLOBAL_MPI_SESSION_HPP 43 #define TEUCHOS_GLOBAL_MPI_SESSION_HPP 50 #include "TeuchosCore_ConfigDefs.hpp" 52 #include "Teuchos_ArrayView.hpp" 162 GlobalMPISession(
int* argc,
char*** argv, std::ostream *out = &std::cout );
179 static bool mpiIsInitialized();
186 static bool mpiIsFinalized();
198 static int getRank();
210 static int getNProc();
220 static void barrier();
238 static int sum(
int localVal);
255 static void allGather(
int localVal,
const ArrayView<int> &allVals);
257 #ifdef HAVE_TEUCHOSCORE_KOKKOSCORE 258 static std::vector<std::string> getArgv ();
266 #endif // HAVE_TEUCHOSCORE_KOKKOSCORE 271 static bool haveMPIState_;
272 static bool mpiIsFinalized_;
275 #ifdef HAVE_TEUCHOSCORE_KOKKOSCORE 276 static std::vector<std::string> argvCopy_;
284 #endif // HAVE_TEUCHOSCORE_KOKKOSCORE 286 static void initialize( std::ostream *out );
288 static void justInTimeInitialize();
294 #endif // TEUCHOS_GLOBAL_MPI_SESSION_HPP Initialize, finalize, and query the global MPI session.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.