#include <Kokkos_Flops.hpp>
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. |
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.
Kokkos::Flops::Flops | ( | void | ) | [inline] |
Kokkos::Flops::Flops | ( | const Flops & | flops | ) | [inline] |