utilities  0.0
Namespaces | Functions
mpi.h File Reference
#include <cstdint>
Include dependency graph for mpi.h:

Go to the source code of this file.

Namespaces

 molpro
 Class that manages input options.
 
 molpro::mpi
 

Functions

MPI_Comm molpro::mpi::comm_self ()
 Return MPI_COMM_SELF in an MPI program, or an appropriate dummy if not. More...
 
MPI_Comm molpro::mpi::comm_global ()
 Return the MPI communicator containing all processes available for participation in computation. If MPI support has been compiled (either mpi.h has already been included, or HAVE_MPI_H has been defined) but not yet initialised, MPI will be initialised, and then MPI_COMM_WORLD is selected. Otherwise, in the case of a program compiled with PPIDD, and for which PPIDD has already been initialised, this will be the PPIDD worker communicator. Otherwise, in the case of a program compiled with GA, and for which GA has already been initialised, this will be the GA worker communicator. Otherwise, if MPI support has is active, MPI_COMM_WORLD is selected. Otherwise (completely serial code), a place-holder is chosen. In the Molpro context, if running in mppx mode, MPI_COMM_SELF is always returned. More...
 
int molpro::mpi::size_global ()
 Query the size of the global MPI communicator. More...
 
int molpro::mpi::rank_global ()
 Query the rank in the global MPI communicator. More...
 
int molpro::mpi::init ()
 In MPI environment initialize; otherwise do nothing. Intended to support MPI-agnostic programs. More...
 
int molpro::mpi::finalize ()
 In MPI environment finalize; otherwise do nothing. More...
 
int64_t mpicomm_global ()
 C binding of mpi::comm_global(), suitable for calling from Fortran. More...
 
int64_t mpicomm_self ()
 C binding of mpi::comm_self(), suitable for calling from Fortran. More...
 
int64_t mpisize_global ()
 C binding of mpi::size_global(), suitable for calling from Fortran. More...
 
int64_t mpirank_global ()
 C binding of mpi::rank_global(), suitable for calling from Fortran. More...
 
int mpi_init ()
 C binding of mpi::init(), suitable for calling from Fortran. More...
 
int mpi_finalize ()
 C binding of mpi::finalize(), suitable for calling from Fortran. More...
 

Function Documentation

◆ mpi_finalize()

int mpi_finalize ( )
inline

C binding of mpi::finalize(), suitable for calling from Fortran.

◆ mpi_init()

int mpi_init ( )
inline

C binding of mpi::init(), suitable for calling from Fortran.

◆ mpicomm_global()

int64_t mpicomm_global ( )
inline

C binding of mpi::comm_global(), suitable for calling from Fortran.

◆ mpicomm_self()

int64_t mpicomm_self ( )
inline

C binding of mpi::comm_self(), suitable for calling from Fortran.

◆ mpirank_global()

int64_t mpirank_global ( )
inline

C binding of mpi::rank_global(), suitable for calling from Fortran.

◆ mpisize_global()

int64_t mpisize_global ( )
inline

C binding of mpi::size_global(), suitable for calling from Fortran.