Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::Flop_counter Class Reference

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
 

Detailed Description

a term is an abstract object representing some expression of tensors

measures flops done in a code region

Definition at line 99 of file timer.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Field Documentation

int64_t CTF::Flop_counter::start_count

Definition at line 101 of file timer.h.

Referenced by count(), Flop_counter(), and zero().


The documentation for this class was generated from the following files: