STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Static Public Member Functions | Public Types
stapl::xc30_energy_counter Class Reference

Counter that measures energy consumption in Joules for the Cray XC30 platform. More...

Public Member Functions

 xc30_energy_counter (const char *filename="/sys/cray/pm_counters/energy")
 Constructs a new xc30_energy_counter that reads from filename.
 
raw_value_type read (void)
 Returns the raw value from the counter.
 
void start (void)
 Starts the counter.
 
value_type stop (void)
 Stops the counter and returns the difference from start() in Joules.
 

Static Public Member Functions

static constexpr const char * name (void) noexcept
 Returns the name of the counter as a C string.
 
static constexpr value_type normalize (const raw_value_type v) noexcept
 Normalizes the given raw value to Joules.
 

Public Types

typedef std::size_t raw_value_type
 
typedef std::size_t value_type
 

Detailed Description

Counter that measures energy consumption in Joules for the Cray XC30 platform.

The counter reads the /sys/cray/pm_counters/energy file by default for energy consumption information per node.


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