Hitmap 1.3
|
Go to the source code of this file.
Data Structures | |
struct | HitClock |
struct | HitCounter |
Functions to manipulate clocks and obtain times to measure codes.
Definition in file hit_utils.h.
#define HIT_CLOCK_RUNNING 0 |
Clock state running.
Definition at line 70 of file hit_utils.h.
#define HIT_CLOCK_STOPPED 1 |
Clock state stopped.
Definition at line 72 of file hit_utils.h.
#define hit_clockContinue | ( | c | ) |
The clock continues measuring time and the time is updated with the start time. The time between hit_clockStop and this function is not measured.
c | clock |
Definition at line 121 of file hit_utils.h.
#define hit_clockGetAvgSeconds | ( | c | ) | (c.avg) |
Definition at line 193 of file hit_utils.h.
#define hit_clockGetMaxSeconds | ( | c | ) | (c.max) |
Definition at line 191 of file hit_utils.h.
#define hit_clockGetMinSeconds | ( | c | ) | (c.min) |
Definition at line 192 of file hit_utils.h.
#define hit_clockGetSeconds | ( | c | ) | (c.seconds) |
#define hit_clockIsRunning | ( | c | ) | ( c.state == HIT_CLOCK_RUNNING ) |
#define hit_clockMaxReduce | ( | topo, | |
c | |||
) |
All the processors from a topology make a reduction to get the maximun time of their respective clock. Processor number 0 gets the time inside its clock
topo | topology |
c | clock |
Definition at line 98 of file hit_utils.h.
#define hit_clockPrint | ( | c | ) |
#define hit_clockPrintAvg | ( | c | ) |
Definition at line 181 of file hit_utils.h.
#define hit_clockPrintMax | ( | c | ) |
Definition at line 175 of file hit_utils.h.
#define hit_clockPrintMin | ( | c | ) |
Definition at line 178 of file hit_utils.h.
#define hit_clockReduce | ( | lay, | |
c | |||
) |
All the processors active in a layout make a reduction to get the maximun, minimum and average time of their respective clock. Processor number 0 gets the reduced times
lay | HitLayout object |
c | clock |
Definition at line 139 of file hit_utils.h.
#define hit_clockReset | ( | c | ) |
reset of a clock. The time is reset to 0.
c | clock |
Definition at line 78 of file hit_utils.h.
#define hit_clockStart | ( | c | ) |
The clock starts to measure time.
c | clock |
Definition at line 87 of file hit_utils.h.
#define hit_clockStop | ( | c | ) |
The clock stops to measure time. The seconds stored are the difference between the start of the clock and the call to this function.
c | clock |
Definition at line 109 of file hit_utils.h.
hit_clockSynchronize: Synchronize the processors active in a layout.
layout | HitLayout object. |
Definition at line 51 of file hit_utils.h.
#define hit_clockSynchronizeAll | ( | ) | MPI_Barrier( MPI_COMM_WORLD ); |
hit_clockSynchronize: Synchronize all the processors.
Definition at line 55 of file hit_utils.h.
#define hit_clockWorldReduce | ( | c | ) |
Definition at line 156 of file hit_utils.h.
#define hit_counterAdd | ( | c, | |
value | |||
) | (c).value += (value) |
#define hit_counterAvg | ( | c | ) | (c.avg) |
Definition at line 307 of file hit_utils.h.
#define hit_counterDec | ( | c | ) | (c).value-- |
#define hit_counterInc | ( | c | ) | (c).value++ |
#define hit_counterMax | ( | c | ) | (c.max) |
Gets the reduced values of a counter
c | counter |
Definition at line 304 of file hit_utils.h.
#define hit_counterMin | ( | c | ) | (c.min) |
Definition at line 305 of file hit_utils.h.
#define hit_counterPrint | ( | c | ) |
Prints a counter
c | counter |
Definition at line 283 of file hit_utils.h.
#define hit_counterPrintAvg | ( | c | ) |
Definition at line 295 of file hit_utils.h.
#define hit_counterPrintMax | ( | c | ) |
Definition at line 286 of file hit_utils.h.
#define hit_counterPrintMin | ( | c | ) |
Definition at line 289 of file hit_utils.h.
#define hit_counterPrintSum | ( | c | ) |
Definition at line 292 of file hit_utils.h.
#define hit_counterReduce | ( | lay, | |
c | |||
) |
All the processors active in a layout make a reduction to get the maximun, minimum and average time of their respective counter. Processor number 0 gets the reduced values
lay | HitLayout object |
c | Counter |
Definition at line 248 of file hit_utils.h.
#define hit_counterReset | ( | c | ) | (c).value = 0 |
#define hit_counterSum | ( | c | ) | (c.sum) |
Definition at line 306 of file hit_utils.h.
#define hit_counterValue | ( | c | ) | ((c).value) |
#define hit_counterWorldReduce | ( | c | ) |
Definition at line 266 of file hit_utils.h.