Skip to content

⚡ Analysis and Measurement of Energy Comsumption for Matrix Multiplication

Notifications You must be signed in to change notification settings

SergioEstevao11/FEUP-CPA-MatrixProduct

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Product

Analysis and Measurement of Energy Comsumption for Matrix Multiplication.

Dependencies

  1. A C++ compiler compatible with C++20
    1. We use g++ but others should work fine
  2. PAPI
  3. perf, toolkit for performance measurements available in Linux
    1. Requires a compatible CPU w/ RAPL, learn more here
    2. See the manual page w/ man perf
  4. OpenMP
    1. Optional, but required in order to execute ./ompproduct.out
  5. GNU Make
    1. Again, optional - just for compilation convinience

Usage

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:

CPA @ M.EIC

About

⚡ Analysis and Measurement of Energy Comsumption for Matrix Multiplication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.0%
  • Makefile 5.0%