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 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
|
|
|
template<class vec_t > |
void | printValues (std::ostream &out, const std::string name, const vec_t &values) const |
|
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.
◆ 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 |
The documentation for this class was generated from the following file: