Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
a term is an abstract object representing some expression of tensors More...
#include <timer.h>
Public Member Functions | |
Flop_counter () | |
constructor, starts counter More... | |
~Flop_counter () | |
void | zero () |
restarts counter More... | |
int64_t | count (MPI_Comm comm=MPI_COMM_SELF) |
get total flop count over all counters in comm More... | |
Data Fields | |
int64_t | start_count |
a term is an abstract object representing some expression of tensors
measures flops done in a code region
CTF::Flop_counter::Flop_counter | ( | ) |
constructor, starts counter
Definition at line 7 of file flop_counter.cxx.
References CTF_int::get_flops(), and start_count.
CTF::Flop_counter::~Flop_counter | ( | ) |
Definition at line 11 of file flop_counter.cxx.
int64_t CTF::Flop_counter::count | ( | MPI_Comm | comm = MPI_COMM_SELF | ) |
get total flop count over all counters in comm
Definition at line 18 of file flop_counter.cxx.
References CTF_int::get_flops(), and start_count.
void CTF::Flop_counter::zero | ( | ) |
restarts counter
Definition at line 14 of file flop_counter.cxx.
References CTF_int::get_flops(), and start_count.
int64_t CTF::Flop_counter::start_count |
Definition at line 101 of file timer.h.
Referenced by count(), Flop_counter(), and zero().