Analysis and Measurement of Energy Comsumption for Matrix Multiplication.
- A C++ compiler compatible with C++20
- We use
g++
but others should work fine
- We use
- PAPI
perf
, toolkit for performance measurements available in Linux- Requires a compatible CPU w/ RAPL, learn more here
- See the manual page w/
man perf
- OpenMP
- Optional, but required in order to execute
./ompproduct.out
- Optional, but required in order to execute
- GNU Make
- Again, optional - just for compilation convinience
make # builds colproduct and lineproduct
./colproduct.out # column-based algorithm
./rowproduct.out # row-based algorithm
./ompproduct.out # row-based parallel algorithm
make clean # removes executable file
In case of measuring energy:
# Requires elevated privileges!
# It is also possible to measure the energy consumption of other components
perf stat -e power/energy-cores/ <executable>
Authors: