Ginkgo
Generated from pipelines/1554403166 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
Class that sets up and finalizes the MPI environment. More...
#include <ginkgo/core/base/mpi.hpp>
Public Member Functions | |
int | get_provided_thread_support () const |
Return the provided thread support. More... | |
environment (int &argc, char **&argv, const thread_type thread_t=thread_type::serialized) | |
Call MPI_Init_thread and initialize the MPI environment. More... | |
~environment () | |
Call MPI_Finalize at the end of the scope of this class. | |
environment (const environment &)=delete | |
environment (environment &&)=delete | |
environment & | operator= (const environment &)=delete |
environment & | operator= (environment &&)=delete |
Static Public Member Functions | |
static bool | is_finalized () |
static bool | is_initialized () |
Class that sets up and finalizes the MPI environment.
This class is a simple RAII wrapper to MPI_Init and MPI_Finalize.
MPI_Init must have been called before calling any MPI functions.
|
inline |
Call MPI_Init_thread and initialize the MPI environment.
argc | the number of arguments to the main function. |
argv | the arguments provided to the main function. |
thread_t | the type of threading for initialization. See @thread_type |
|
inline |
Return the provided thread support.