1 #ifndef TIMER_MACRO_HPP
2 #define TIMER_MACRO_HPP
9 static int GPTLstart(
const char* name){
return 0;}
10 static int GPTLstop(
const char* name){
return 0;}
16 #error "TIMER macro already defined"
21 #define TIMER_CHKPT_START(N) if(global_debug_flag) checkpoint(std::string("Starting '") + N + std::string("'...\n"));
22 #define TIMER_CHKPT_END(N) if(global_debug_flag) checkpoint(std::string("Finished '") + N + std::string("'!\n"));
24 #define TIMER(N,F) {TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);}
38 #error "FENCED_TIMER macro already defined"
41 #define FENCED_TIMER(N,F) {TIMER_CHKPT_START(N); GPTLstart(N); F; Kokkos::fence(); GPTLstop(N); TIMER_CHKPT_END(N);}
54 #error "TIMER_NS macro already defined"
57 #define TIMER_NS(N,F) TIMER_CHKPT_START(N); GPTLstart(N); F; GPTLstop(N); TIMER_CHKPT_END(N);
62 #define PERF_BARRIER_TIMER(N) if(global_perf_barriers_flag) TIMER(N, MPI_Barrier(MPI_COMM_WORLD));
64 #define PERF_BARRIER_TIMER(N)
static int GPTLstart(const char *name)
Definition: timer_macro.hpp:9
static int GPTLinitialize()
Definition: timer_macro.hpp:8
static int GPTLpr_file(const char *name)
Definition: timer_macro.hpp:11
static int GPTLstop(const char *name)
Definition: timer_macro.hpp:10