Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probe CPU program's performance

A set of scripts for profiling CPU program performance including:

  • FLOP
  • Cache access
  • DRAM access
  • arithmetic intensity
  • computation complexity
  • ...

requirement

make sure you are working on a physical machine

  • perf
sudo apt update
sudo apt install linux-tools-generic

or on WSL2:

wget https://mirrors.edge.kernel.org/pub/linux/kernel/tools/perf/<perf-version>.tar.gz
tar -xzvf perf-<version>.tar.gz
cd perf-<version>/tools/perf
make -j
./perf --version
sudo make install
  • python packages: numpy, pandas

example program

compile

g++ -o GeMM -O3 -std=c++11 GeMM.cpp

usage

./GeMM <M> <K> <N> # (M,K) (K,N) -> (M,N)

analysis

About

A perf probe program for CPU program FP/Mem access detection

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages