Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
int_timer.h
Go to the documentation of this file.
1 #ifndef __INT_TIMER_H__
2 #define __INT_TIMER_H__
3 
4 namespace CTF {
10  void set_main_args(int argc, const char * const * argv);
11 
16 }
17 #ifdef PROFILE
18 #define TAU
19 #endif
20 
21 #ifdef TAU
22 #define TAU_FSTART(ARG) \
23  do { CTF::Timer t(#ARG); t.start(); } while (0);
24 
25 #define TAU_FSTOP(ARG) \
26  do { CTF::Timer t(#ARG); t.stop(); } while (0);
27 
28 #define TAU_PROFILE_TIMER(ARG1, ARG2, ARG3, ARG4)
29 
30 #define TAU_PROFILE_INIT(argc, argv) \
31  CTF::set_main_args(argc, argv);
32 
33 #define TAU_PROFILE_SET_NODE(ARG)
34 
35 #define TAU_PROFILE_START(ARG) \
36  CTF::Timer __CTF::Timer##ARG(#ARG);
37 
38 #define TAU_PROFILE_STOP(ARG) \
39  __CTF::Timer##ARG.stop();
40 
41 #define TAU_PROFILE_SET_CONTEXT(ARG) \
42  if (ARG==0) CTF::set_context(MPI_COMM_WORLD); \
43  else CTF::set_context((MPI_Comm)ARG);
44 #endif
45 
46 
47 #endif
48 
void set_main_args(int argc, const char *const *argv)
Definition: int_timer.cxx:309
Definition: apsp.cxx:17