andreas-abel / nanoBench

A tool for running small microbenchmarks on recent Intel and AMD x86 CPUs.
http://www.uops.info
GNU Affero General Public License v3.0
435 stars 55 forks source link

Integration with any source code #25

Closed anilavakundu closed 2 years ago

anilavakundu commented 2 years ago

Hi

I was wondering if there is any pipeline support to handle high-level source code (preferably, hooks like IACA that can be inserted in the source) to get the stats of a region and or functions.

If yes any help with the same will be really helpful!

Thanks!

Pavitra07 commented 2 years ago

Have you tried checking the event counts of a c code or any other machine ./a.out codes? Can you share the usability?

andreas-abel commented 2 years ago

This is not possible with nanoBench.

IACA markers are supported by uiCA (https://github.com/andreas-abel/uica), which is based on simulation. If you want to use performance counters, you could have a look at PAPI (https://icl.utk.edu/papi/) and/or libpfc (https://github.com/obilaniu/libpfc/).