WarpX
Classes | Functions
ablastr::parallelization Namespace Reference

Classes

class  KernelTimer
 Defines a timer object to be used on GPU; measures summed thread cycles. More...
 

Functions

constexpr int mpi_thread_required ()
 
std::pair< int, intmpi_init (int argc, char *argv[])
 
void mpi_finalize ()
 
void check_mpi_thread_level ()
 

Function Documentation

◆ check_mpi_thread_level()

void ablastr::parallelization::check_mpi_thread_level ( )

Check if the requested MPI thread level is valid

Prints warnings and notes otherwise.

◆ mpi_finalize()

void ablastr::parallelization::mpi_finalize ( )

Finalize MPI

This function is simply a wrapper around MPI_Finalize(). It is a no-op if ABLASTR is compiled without MPI support.

◆ mpi_init()

std::pair< int, int > ablastr::parallelization::mpi_init ( int  argc,
char *  argv[] 
)

Initialize MPI

Returns
pair(required, provided) of MPI thread level from MPI_Init_thread

◆ mpi_thread_required()

constexpr int ablastr::parallelization::mpi_thread_required ( )
constexpr

Return the required MPI threading

Returns
the MPI_THREAD_* level required for MPI_Init_thread