pypapi icon indicating copy to clipboard operation
pypapi copied to clipboard

pyapi.exceptions.PapiNoEventError: Event does not exist. (PAPI_ENOEVNT)

Open unipdjahanifar opened this issue 3 years ago • 2 comments

I can see via papi_avail that my system does have hardware counters (Number Hardware Counters: 11) and that the event I am interested in (PAPI_SP_OPS) is available:

Name Code Avail Deriv Description (Note) PAPI_SP_OPS 0x80000067 Yes Yes Floating point operations; optimised to count scaled single precision vector operations

Now I run the python wrapper analogous to shown in the tutorial:

from pyapi import events, papi_high as high high.start_counters([events.PAPI_SP_OPS])

However I get the error pyapi.exceptions.PapiNoEventError: Event does not exist. (PAPI_ENOEVNT). But clearly the event does exist as shown at the start with papi_avail

Any tips?

unipdjahanifar avatar Dec 10 '22 17:12 unipdjahanifar

Hello,

It is maybe a permission issue, but I am not able to help you. You may ask PAPI's devs for help. This project is only a partial and no up-to-date Python binding for PAPI.

:)

flozz avatar Dec 13 '22 08:12 flozz

I can see via papi_avail that my system does have hardware counters (Number Hardware Counters: 11) and that the event I am interested in (PAPI_SP_OPS) is available:

Name Code Avail Deriv Description (Note) PAPI_SP_OPS 0x80000067 Yes Yes Floating point operations; optimised to count scaled single precision vector operations

Now I run the python wrapper analogous to shown in the tutorial:

from pyapi import events, papi_high as high high.start_counters([events.PAPI_SP_OPS])

However I get the error pyapi.exceptions.PapiNoEventError: Event does not exist. (PAPI_ENOEVNT). But clearly the event does exist as shown at the start with papi_avail

Any tips?

Hi! I have the same issue, did you solve it?

Kou-99 avatar Apr 23 '23 05:04 Kou-99