Ginkgo  Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
Public Member Functions | Static Public Member Functions | List of all members
gko::experimental::mpi::environment Class Reference

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
 
environmentoperator= (const environment &)=delete
 
environmentoperator= (environment &&)=delete
 

Static Public Member Functions

static bool is_finalized ()
 
static bool is_initialized ()
 

Detailed Description

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.

Note
If MPI_Init has already been called, then this class should not be used.

Constructor & Destructor Documentation

◆ environment()

gko::experimental::mpi::environment::environment ( int &  argc,
char **&  argv,
const thread_type  thread_t = thread_type::serialized 
)
inline

Call MPI_Init_thread and initialize the MPI environment.

Parameters
argcthe number of arguments to the main function.
argvthe arguments provided to the main function.
thread_tthe type of threading for initialization. See @thread_type

Member Function Documentation

◆ get_provided_thread_support()

int gko::experimental::mpi::environment::get_provided_thread_support ( ) const
inline

Return the provided thread support.

Returns
the provided thread support

The documentation for this class was generated from the following file: