RRZE-HPC / pylikwid

Python interface for the LIKWID C API (https://github.com/RRZE-HPC/likwid)
GNU General Public License v2.0
43 stars 13 forks source link

Use correct marker API names in README #14

Closed JiaweiZhuang closed 5 years ago

JiaweiZhuang commented 5 years ago

I was following the Marker API usage in README, but got an error at the first call to pylikwid.init(), because it is not a marker API but a performance monitoring API (which should be called as pylikwid.init(cpus)).

Fortunately I've got the code working by following tests/testmarker.py. Just add the marker prefix to all marker API names.

BTW, it is amazing that this tool can count hardware events for user-defined Python code blocks!

TomTheBear commented 5 years ago

Thanks for the PR. I havn't looked at pylikwid quite some time, so thanks for fixing this. I'm happy the tool helps you.