Skip to content

Information about measuring energy on platforms and any tools used to change system behavior relating to energy

Notifications You must be signed in to change notification settings

gtcasl/energy-measurement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

energy-measurement

Information about measuring energy on platforms and any tools used to change system behavior relating to energy

The benchmark application gives the user control over the number of compute-intensive and memory-bound operations. Also, allows the user to bundle up blocks of operations of each type.

To compile: g++ benchmark.cpp -o benchmark-I/usr/local/include -L/usr/local/lib -lpapi -std=c++11 -fopenmp

To run: sudo ./benchmark parameter a parameter b parameter c parameter d

Parameter a is the factor that decides the size of each block

Parameter b is the fraction of compute-intensive operations

Parameter c is the fraction of memory-bound operations

Parameter d is the factor that decides the number of iterations of the compute-intensive and memory-bound blocks

PAPI helper functions have been included. The required events can be added in main. Only L1_TCM has been added already.

The program gives the counter values of the requested events and the execution time of the program.

To vary the number of cores, set OMP_NUM_THREADS environment variable. For example: sudo OMP_NUM_THREADS=8 ./benchmark

About

Information about measuring energy on platforms and any tools used to change system behavior relating to energy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages