Kokkos::Flops Class Reference

Kokkos::Flops: The Kokkos Floating Point Operations Class. More...

#include <Kokkos_Flops.hpp>

List of all members.

Public Member Functions

Constructors/Destructor
 Flops (void)
 Flops Constructor.
 Flops (const Flops &flops)
 Flops Copy Constructor.
virtual ~Flops (void)
 Flops Destructor.
Attribute access/reset methods
double getFlops () const
 Returns the number of floating point operations with this object and resets the count.
void resetFlops ()
 Resets the number of floating point operations to zero for this multi-vector.

Protected Member Functions

void updateFlops (int flops) const
 Increment flop count for this object from an int.
void updateFlops (long int flops) const
 Increment flop count for this object from a long int.
void updateFlops (double flops) const
 Increment flop count for this object from a double.
void updateFlops (float flops) const
 Increment flop count for this object from a float.

Protected Attributes

double flops_

Friends

Friend class
class CompObject
 CompObject needs to be able to set the flopCounter_ attribute of Flops.


Detailed Description

Kokkos::Flops: The Kokkos Floating Point Operations Class.

The Kokkos::Flops class provides basic support and consistent interfaces for counting and reporting floating point operations performed in the Kokkos computational classes. All classes based on the Kokkos::CompObject can count flops by the user creating an Kokkos::Flops object and calling the SetFlopCounter() method for an Kokkos::CompObject.


Constructor & Destructor Documentation

Kokkos::Flops::Flops ( void   )  [inline]

Flops Constructor.

Creates a Flops instance. This instance can be queried for the number of floating point operations performed for the associated this object.

Kokkos::Flops::Flops ( const Flops flops  )  [inline]

Flops Copy Constructor.

Makes a copy of an existing Flops instance.

Warning:
The counter of the Flops copy is reset to zero.


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:42:02 2010 for Kokkos by  doxygen 1.4.7