XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
timer_macro.hpp File Reference
#include "checkpoint.hpp"
Include dependency graph for timer_macro.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TIMER_CHKPT_START(N)   if(global_debug_flag) checkpoint(std::string("Starting '") + N + std::string("'...\n"));
 
#define TIMER_CHKPT_END(N)   if(global_debug_flag) checkpoint(std::string("Finished '") + N + std::string("'!\n"));
 
#define TIMER(N, F)   {TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);}
 
#define FENCED_TIMER(N, F)   {TIMER_CHKPT_START(N); GPTLstart(N); F; Kokkos::fence(); GPTLstop(N); TIMER_CHKPT_END(N);}
 
#define TIMER_NS(N, F)   TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);
 
#define PERF_BARRIER_TIMER(N)
 

Functions

static int GPTLinitialize ()
 
static int GPTLstart (const char *name)
 
static int GPTLstop (const char *name)
 
static int GPTLpr_file (const char *name)
 

Macro Definition Documentation

#define FENCED_TIMER (   N,
 
)    {TIMER_CHKPT_START(N); GPTLstart(N); F; Kokkos::fence(); GPTLstop(N); TIMER_CHKPT_END(N);}
#define PERF_BARRIER_TIMER (   N)
#define TIMER (   N,
 
)    {TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);}
#define TIMER_CHKPT_END (   N)    if(global_debug_flag) checkpoint(std::string("Finished '") + N + std::string("'!\n"));
#define TIMER_CHKPT_START (   N)    if(global_debug_flag) checkpoint(std::string("Starting '") + N + std::string("'...\n"));
#define TIMER_NS (   N,
 
)    TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);

Function Documentation

static int GPTLinitialize ( )
static
static int GPTLpr_file ( const char *  name)
static
static int GPTLstart ( const char *  name)
static

Here is the caller graph for this function:

static int GPTLstop ( const char *  name)
static

Here is the caller graph for this function: