dune-fem 2.8.0
Loading...
Searching...
No Matches
Static Public Member Functions | Protected Member Functions | List of all members
Dune::Fem::FlopCounter Class Reference

A class wrapper for the function PAPI_flops from the package PAPI. The results are CPU time, real and process local and the number of floating point operations in MFLOP/s. More...

#include <dune/fem/misc/flops.hh>

Static Public Member Functions

static void start ()
 Start counters.
 
static void stop ()
 stop counters
 
static void print (std::ostream &out)
 print values to given ostream, all values are gathered to the master rank before printing
 

Protected Member Functions

template<class vec_t >
void printValues (std::ostream &out, const std::string name, const vec_t &values) const
 

Detailed Description

A class wrapper for the function PAPI_flops from the package PAPI. The results are CPU time, real and process local and the number of floating point operations in MFLOP/s.

Member Function Documentation

◆ print()

static void Dune::Fem::FlopCounter::print ( std::ostream &  out)
inlinestatic

print values to given ostream, all values are gathered to the master rank before printing

◆ printValues()

template<class vec_t >
void Dune::Fem::FlopCounter::printValues ( std::ostream &  out,
const std::string  name,
const vec_t &  values 
) const
inlineprotected

◆ start()

static void Dune::Fem::FlopCounter::start ( )
inlinestatic

Start counters.

Note
Call this method for the master thread before all other threads call this method if used in a multi-thread environment.

◆ stop()

static void Dune::Fem::FlopCounter::stop ( )
inlinestatic

stop counters


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