tud-zih-energy / x86_energy

The x86_energy library allows to count power and energy values.
GNU Lesser General Public License v2.1
11 stars 3 forks source link

Build Status

X86-Energy Libraries for Score-P

This library enables access to processor power and energy measurement facilities, i.e., RAPL and APM implementations from Intel and AMD. It supports different backends that are checked during compile and runtime.

Compilation and Installation

Prerequisites

To compile this plugin, you need:

Build Options

Building

  1. Create build directory

    mkdir build
    cd build
  2. Invoking CMake

    cmake .. (options)
  3. Invoking make

    make
  4. Install

    make install
  5. Add the installation path to LD_LIBRARY_PATH with

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`

Usage

See the documentation in

During runtime, the library will try to access the following interfaces:

  1. intel powercap, provided by the intel_powerclamp kernel module
  2. intel rapl via perf, provided by the intel_rapl_perf kernel module
  3. msr and msr-safe, provided by the msr and msr-safe kernel module
  4. x86-adapt, provided by the x86_adapt kernel module (if found during installation)
  5. likwid, provided by likwid the msr/msr-safe kernel module (if found during installation)
  6. APM fam15 APM, provided by the fam15h_power kernel module

Option 1-5 are provided for Intel RAPL (Intel since Sandy Bridge), Option 3 and 4 are provided for AMD RAPL (e.g., AMD Zen), option 6 is provided for APM (AMD Family 15h)

Enforce a specific interface

You can enforce a specific interface by setting the environment variable X86_ENERGY_SOURCE to one of these values:

If anything fails

  1. Check whether the libraries can be loaded from the LD_LIBRARY_PATH.

  2. Write a mail to the author.

Authors