Skip to content

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

@scutyuqiu

Description

@scutyuqiu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions