University of Tehran
Energy and power consumption are becoming critical metrics in the design and usage of high performance systems. The authors have extended the Performance API (PAPI) analysis library to measure and report energy and power values. These values are reported using the existing PAPI API, allowing code previously instrumented for performance counters to also measure power and energy. Higher level tools that build on PAPI will automatically gain support for power and energy readings when used with the newest version of PAPI. They describe in detail the types of energy and power readings available through PAPI. They support external power meters, as well as values provided internally by recent CPUs and GPUs.