Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I run the given code, I have the following error, how to improve? tks #53

Open
scutyuqiu opened this issue Apr 17, 2024 · 1 comment
Labels

Comments

@scutyuqiu
Copy link

from pypapi import papi_low as papi
from pypapi import events
papi.library_init()
evs = papi.create_eventset()
papi.add_event(evs, events.PAPI_FP_OPS)
papi.start(evs)
aaa =1
result = papi.stop(evs)
print(result)
papi.cleanup_eventset(evs)
papi.destroy_eventset(evs)

Traceback (most recent call last):
File "/home/lab131_unix/Code/privacy/test.py", line 7, in
papi.add_event(evs, events.PAPI_FP_OPS)
File "/home/lab131_unix/anaconda3/envs/RLenvironment/lib/python3.9/site-packages/pypapi/exceptions.py", line 198, in papi_error_wrapper
raise PapiMiscellaneousError()
pypapi.exceptions.PapiMiscellaneousError: Unknown error code. (PAPI_EMISC)

@flozz flozz added the invalid label Apr 30, 2024
@flozz
Copy link
Owner

flozz commented Apr 30, 2024

Hello,

This project is only a Python binding for the PAPI library; it allows to use PAPI from Python. You issue seems related to the PAPI library itself and not the binding so you may ask for help on the PAPI project:

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants