Attention
This project is under active development. For any issues, features requests, or if you would like to contribute, our github page page is the place to go.
perun is a Python package that calculates the energy consumption of Python scripts by sampling usage statistics from your Intel, Nvidia or AMD hardware components. It can handle MPI applications, gather data from hundreds of nodes, and accumulate it efficiently. perun can be used as a command-line tool or as a function decorator in Python scripts.
Check out the docs or a working example!
Key Features¶
Measures energy consumption of Python scripts and binaries, supporting different hardware configurations
Capable of handling MPI applications, gathering data from hundreds of nodes efficiently
Monitor individual functions using decorators
Tracks energy usage of the application over multiple executions
Easy to benchmark applications and functions
Experimental!: Can monitor any non-distributed command line application