SURFEX v8.1
General documentation of Surfex
Functions | Variables
opfla_perfmon.c File Reference

Go to the source code of this file.

Functions

static char * cpuset_to_cstr (cpu_set_t *mask, char *str)
 
static void getProcessIdentity (char *hostname, int hostnamesize, char *affinity, int affinitysize, int *rank, int *numranks, pid_t *pid)
 
static int parseMeminfo (const char *label)
 
static int report_init (int periodicreport)
 
static void report_periodic ()
 
static void coll_print (FILE *fp, const char *label, double val, int print_aggregate, MPI_Comm Comm)
 
static void report_final (FILE *fp, const MPI_Comm *comm)
 
static void * thread_worker (void *threadarg)
 
static void common_inits ()
 
int __wrap_MPI_Init (int *argc, char ***argv)
 
int __wrap_MPI_Init_thread (int *argc, char ***argv, int required, int *provided)
 
int __wrap_MPI_Finalize ()
 
void csc_perfmon_begin_ ()
 
void csc_perfmon_begin__ ()
 
void csc_perfmon_begin ()
 
void CSC_PERFMON_BEGIN ()
 
void csc_perfmon_end_ ()
 
void csc_perfmon_end__ ()
 
void csc_perfmon_end ()
 
void CSC_PERFMON_END ()
 
void dummy_Opfla_PERFMOM ()
 

Variables

int rank
 
int numranks
 
char affinity [128]
 
pid_t pid
 
char nodename [128]
 
FILE * fp
 
long_long papi_values [NUM_EV]
 
long_long start_usec_p
 
long_long start_usec_r
 
int init_error
 
struct thread_data td
 

Function Documentation

◆ __wrap_MPI_Finalize()

int __wrap_MPI_Finalize ( )

Definition at line 368 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __wrap_MPI_Init()

int __wrap_MPI_Init ( int *  argc,
char ***  argv 
)

Definition at line 349 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __wrap_MPI_Init_thread()

int __wrap_MPI_Init_thread ( int *  argc,
char ***  argv,
int  required,
int *  provided 
)

Definition at line 358 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ coll_print()

static void coll_print ( FILE *  fp,
const char *  label,
double  val,
int  print_aggregate,
MPI_Comm  Comm 
)
static

Definition at line 199 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ common_inits()

static void common_inits ( )
static

Definition at line 295 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cpuset_to_cstr()

static char* cpuset_to_cstr ( cpu_set_t *  mask,
char *  str 
)
static

Definition at line 45 of file opfla_perfmon.c.

Here is the caller graph for this function:

◆ csc_perfmon_begin()

void csc_perfmon_begin ( )

Definition at line 380 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ CSC_PERFMON_BEGIN()

void CSC_PERFMON_BEGIN ( )

Definition at line 381 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ csc_perfmon_begin_()

void csc_perfmon_begin_ ( )

Definition at line 378 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csc_perfmon_begin__()

void csc_perfmon_begin__ ( )

Definition at line 379 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ csc_perfmon_end()

void csc_perfmon_end ( )

Definition at line 385 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ CSC_PERFMON_END()

void CSC_PERFMON_END ( )

Definition at line 386 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ csc_perfmon_end_()

void csc_perfmon_end_ ( )

Definition at line 383 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csc_perfmon_end__()

void csc_perfmon_end__ ( )

Definition at line 384 of file opfla_perfmon.c.

Here is the call graph for this function:

◆ dummy_Opfla_PERFMOM()

void dummy_Opfla_PERFMOM ( )

Definition at line 390 of file opfla_perfmon.c.

◆ getProcessIdentity()

static void getProcessIdentity ( char *  hostname,
int  hostnamesize,
char *  affinity,
int  affinitysize,
int *  rank,
int *  numranks,
pid_t *  pid 
)
static

Definition at line 75 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseMeminfo()

static int parseMeminfo ( const char *  label)
static

Definition at line 90 of file opfla_perfmon.c.

Here is the caller graph for this function:

◆ report_final()

static void report_final ( FILE *  fp,
const MPI_Comm *  comm 
)
static

Definition at line 224 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_init()

static int report_init ( int  periodicreport)
static

Definition at line 114 of file opfla_perfmon.c.

Here is the caller graph for this function:

◆ report_periodic()

static void report_periodic ( )
static

Definition at line 159 of file opfla_perfmon.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_worker()

static void* thread_worker ( void *  threadarg)
static

Definition at line 272 of file opfla_perfmon.c.

Here is the caller graph for this function:

Variable Documentation

◆ affinity

char affinity[128]

Definition at line 21 of file opfla_perfmon.c.

◆ fp

FILE* fp

Definition at line 24 of file opfla_perfmon.c.

◆ init_error

int init_error

Definition at line 32 of file opfla_perfmon.c.

◆ nodename

char nodename[128]

Definition at line 23 of file opfla_perfmon.c.

◆ numranks

int numranks

Definition at line 20 of file opfla_perfmon.c.

◆ papi_values

long_long papi_values[NUM_EV]

Definition at line 28 of file opfla_perfmon.c.

◆ pid

pid_t pid

Definition at line 22 of file opfla_perfmon.c.

◆ rank

int rank

Definition at line 19 of file opfla_perfmon.c.

◆ start_usec_p

long_long start_usec_p

Definition at line 29 of file opfla_perfmon.c.

◆ start_usec_r

long_long start_usec_r

Definition at line 30 of file opfla_perfmon.c.

◆ td

struct thread_data td

Definition at line 40 of file opfla_perfmon.c.