Giter Site home page Giter Site logo

trahay / mpi-wattmeter Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 208 KB

MPI-Wattmeter measures the power consumption of MPI programs

CMake 6.16% C 93.38% Fortran 0.38% Makefile 0.09%
energy-consumption energy-monitor carbon-emissions cuda gpu hpc mpi

mpi-wattmeter's Introduction

MPI-Wattmeter

MPI-Wattmeter measures the power consumption of MPI programs.

Running an application

mpirun mpi_wattmeter [options] myappli

The following options can be passed to MPI Interceptor:

  • -v or --verbose
    • Set verbosity level (default level: 0)
  • -d or --details
    • Print detailed measurements (default level: 0)

Building MPI-Wattmeter

git clone https://github.com/trahay/mpi-wattmeter.git
mkdir mpi-wattmeter/build
cd mpi-wattmeter/build
cmake ..  -DCMAKE_INSTALL_PREFIX=$PWD/../install
make install

Example

In this example, we run NAS Parallel Benchmark BT kernel:


$ mpirun -np 4 mpi_wattmeter  ./bin/bt.A.4 
[...]
============================
MPI-Wattmeter summary
============================
#Node:rank      Source          joules          Watt.hour 
3a401-01:0      energy-cores    216.070618      0.060020  
3a401-01:0      energy-pkg      252.904602      0.070251  
3a401-01:0      energy-ram      13.127563       0.003647  
3a401-02:1      energy-cores    194.357422      0.053988  
3a401-02:1      energy-pkg      230.965149      0.064157  
3a401-02:1      energy-ram      12.479248       0.003466  
3a401-03:2      energy-cores    216.447571      0.060124  
3a401-03:2      energy-pkg      253.188782      0.070330  
3a401-03:2      energy-ram      12.913330       0.003587  
3a401-04:3      energy-cores    196.919067      0.054700  
3a401-04:3      energy-pkg      233.507263      0.064863  
3a401-04:3      energy-ram      12.370789       0.003436  

Total:
#Source         total(j)        avg(j)          min(j)          max(j)          total(W.h)      avg(W.h)        min(W.h)        max(W.h)  
energy-cores    823.794678      205.948669      194.357422      216.447571      0.228832        0.057208        0.053988        0.060124  
energy-pkg      970.565796      242.641449      230.965149      253.188782      0.269602        0.067400        0.064157        0.070330  
energy-ram      50.890930       12.722733       12.370789       13.127563       0.014136        0.003534        0.003436        0.003647  

Adding the -d option prints the collected data for each machine.

Several hardware counters are collected:

  • energy-cores: energy consumed by the CPU
  • energy-gpu: energy consumed by the integrated GPU
  • energy-ram: energy consumed by the RAM
  • energy-pkg: energy consumed by the whole socket (usually this corresponds to CPU+RAM)
  • energy-psys: total energy consumed by the machine

mpi-wattmeter's People

Contributors

trahay avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.