geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Macros | Functions
geopm_pmpi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GEOPM_PMPI_ENTER_MACRO(FUNC)
 
#define GEOPM_PMPI_EXIT_MACRO   geopm_mpi_region_exit(func_rid);
 

Functions

MPI_Fint geopm_swap_comm_world_f (MPI_Fint comm)
 Swap out COMM_WORLD with our internally modified comm (fortran only) More...
 
void geopm_mpi_region_enter (uint64_t func_rid)
 Mark entry of a wrapped MPI region. More...
 
void geopm_mpi_region_exit (uint64_t func_rid)
 Mark exit of a wrapped MPI region. More...
 
uint64_t geopm_mpi_func_rid (const char *func_name)
 Create a unique region_id from a MPI function name. More...
 
int geopm_pmpi_init_thread (int *argc, char **argv[], int required, int *provided)
 
int geopm_pmpi_finalize (void)
 
MPI_Comm geopm_swap_comm_world (MPI_Comm comm)
 

Macro Definition Documentation

◆ GEOPM_PMPI_ENTER_MACRO

#define GEOPM_PMPI_ENTER_MACRO (   FUNC)
Value:
static unsigned is_once = 1; \
static uint64_t func_rid = 0; \
if (is_once || func_rid == 0) { \
func_rid = geopm_mpi_func_rid(FUNC); \
is_once = 0; \
} \
geopm_mpi_region_enter(func_rid);
uint64_t geopm_mpi_func_rid(const char *func_name)
Create a unique region_id from a MPI function name.
Definition: geopm_pmpi_helper.cpp:100

◆ GEOPM_PMPI_EXIT_MACRO

#define GEOPM_PMPI_EXIT_MACRO   geopm_mpi_region_exit(func_rid);

Function Documentation

◆ geopm_mpi_func_rid()

uint64_t geopm_mpi_func_rid ( const char *  func_name)

Create a unique region_id from a MPI function name.

◆ geopm_mpi_region_enter()

void geopm_mpi_region_enter ( uint64_t  func_rid)

Mark entry of a wrapped MPI region.

◆ geopm_mpi_region_exit()

void geopm_mpi_region_exit ( uint64_t  func_rid)

Mark exit of a wrapped MPI region.

◆ geopm_pmpi_finalize()

int geopm_pmpi_finalize ( void  )

◆ geopm_pmpi_init_thread()

int geopm_pmpi_init_thread ( int *  argc,
char **  argv[],
int  required,
int *  provided 
)

◆ geopm_swap_comm_world()

MPI_Comm geopm_swap_comm_world ( MPI_Comm  comm)

◆ geopm_swap_comm_world_f()

MPI_Fint geopm_swap_comm_world_f ( MPI_Fint  comm)

Swap out COMM_WORLD with our internally modified comm (fortran only)