Questions tagged [papi]

PAPI (Performance Application Programming Interface) provides the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors. PAPI enables software engineers to see, in near real time, the relation between software performance and processor events.

86 questions
1
vote
1 answer

system wide perf_event_open

Using the perf cli, we can measure system wide counters : $ sudo perf stat -e cpu-cycles ^C Performance counter stats for 'system wide': 4 247 009 923 cpu-cycles 2,183469627…
PierreJ
  • 23
  • 4
1
vote
1 answer

Installing PAPI on MacOS

I am trying to install PAPI on my Mac (10.14.6) In case there are no information about macos in INSTALL.txt Tried the standard installation: git clone https://bitbucket.org/icl/papi.git cd papi/src ./configure --prefix=$PWD/install (or just only…
1
vote
1 answer

Papi_avail no events available - Unknown libpfm4 related error

I just made a fresh install of Ubuntu 20 on an AMD Ryzen 5000 series. I installed papi tools 6 by following the install instructions. The installation was succsessful and I verified the installed version: $ sudo papi_version PAPI Version:…
Salvo
  • 541
  • 6
  • 19
1
vote
0 answers

Can PAPI_INHERIT_ALL and RAPL events work together?

I'm using PAPI to collect performance and energy information on a skylake processor. The target application is multi-threaded, and I want to aggregate statistics across all running threads. This works fine if I only track non-RAPL events, but if I…
MemoryWrangler
  • 335
  • 2
  • 10
1
vote
0 answers

Observing unexpected result for PAPI's L1_MISS native event counter

I am using PAPI to count L1 cache access results. Mostly native events give expected results, however there is one case when L1_MISS is not precise. I have an object of 64 in size and volatile array of 100,000 elements as shown in the code: typedef…
Ana Khorguani
  • 896
  • 4
  • 18
1
vote
0 answers

why does the results of reading hardware counters with papi depend on PAPI_library_init position?

I am using PAPI library for reading hardware counters. I have noticed that the order of calling PAPI_library_init(PAPI_VER_CURRENT) initialization has an influence on the results I get. My initialization and read of the array is like this: int…
Ana Khorguani
  • 896
  • 4
  • 18
1
vote
0 answers

PAPI_num_counters() shows the system doesn't have available counters

I have a question regarding PAPI (Performance Application Programming Interface). I downloaded and installed PAPI library. Still not sure how to use it correctly and what additional things I need, to make it work. I am trying to use it in C. I have…
Ana Khorguani
  • 896
  • 4
  • 18
1
vote
0 answers

How to capture an accurate value of a retired instruction event using Hardware Performance Counter?

The accuracy of hardware performance counters measurements is discussed widely in the literature. Using hardware performance counters, we can measure many types of micro-architecture events, such as cache hits and misses, load and store, and retired…
1
vote
1 answer

libPAPI : Maximum simultaneous events measure

I want to use PAPI 5.5.1 to check out performances about some of my text algorithms in order to observe differences about cycles, number of mispredictions and pipeline. I have checked the native events provided by the library and I have verified…
Paul Ankman
  • 190
  • 9
1
vote
1 answer

install PAPI on ubunutu , I get Error when I run "make test"

I tried to install papi on ubutu 16.4 on my desktop. I am facing error I con't find any solution for it. Maybe because this is my first experience with Papi.I download papi version 5.5 from http://icl.cs.utk.edu/papi/software/index.html. I did the…
kaloon
  • 157
  • 4
  • 15
1
vote
1 answer

performance counters values return zero using papi attach

I am trying to read the hardware performance counter using PAPI and I have written the following code: #include #include #include "papi.h" /* This needs to be included every time you use PAPI */ #include #define…
David
  • 481
  • 5
  • 14
1
vote
1 answer

counts number of read/write happened to specific memory addresses on the main memory

I want to develop a tool that takes memory addresses as input and then counts number of read/write happened to those memory addresses on the main memory. Is there any tool (like PAPI, Perfmon2) can help me to achieve that? Thank you
ying ding
  • 11
  • 1
1
vote
0 answers

Instruction Cache Accesses (PAPI)

I am currently benchmarking some code using PAPI. One of the preset values I obtain is the PAPI_L1_ICA i.e. the amount of instruction cache accesses performed to the L1 instruction cache. As far as I can see the code is dominated by this, since the…
1
vote
1 answer

What is the difference between PM_DATA_ALL* and PM_DATA* events on Power8?

During evaluation of memory performance of Power8 processor using perf I ended up with problem of understanding difference between events PM_DATA_ALL_* and PM_DATA_*. Most of the counters exists in both version, but the description in oprofile…
Jakuje
  • 24,773
  • 12
  • 69
  • 75
1
vote
0 answers

GET COUNTERS with Intel trace Collector&Analyzer and PAPI

Hy everyone, I'm trying to get counters using Intel Trace Collector and PAPI, but the stf trace file (opened with Intel Analyzer) does not provide counters. By following the Collector guide, I edited the conf file adding counters I want to…
Fab
  • 1,145
  • 7
  • 20
  • 40