Skip to content

quepas/sPAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sPAPI

Simple Scilab API for PAPI (Performance Application Programming Interface).

Installation

  1. Install PAPI >=5.5.1
  2. Run scilab in sPAPI directory
  3. Compile sPAPI_register, sPAPI_tic, and sPAPI_toc functions from Scilab console using ilib_mex_build function:
ilib_mex_build('sPAPI', ['sPAPI_tic', 'sPAPI_tic', 'cmex'; 'sPAPI_toc', 'sPAPI_toc', 'cmex'; 'sPAPI_register', 'sPAPI_register', 'cmex'], [], [], '', '-lpapi', '', '');

Usage

  1. Register hardware performance monitoring counters (PMC) using preset or native events:
>> sPAPI_register('FP_ARITH:SCALAR_SINGLE', 'L1D:REPLACEMENT', 'PAPI_L2_ICA')
  1. Start counters:
>> sPAPI_tic
  1. Read counters measurements:
>> sPAPI_toc

ans = [0  577  1123]

Comments

  • The number of hardware counters available on the system defines the upper limit of counters you can register using sPAPI_register function.
  • Not all hardware counters can be mixed and used simultaneously.

Future works

About

Simple Scilab API for PAPI (Performance Application Programming Interface).

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages