powerapi-ng/pyJoules

Unable to access package domains (and recommended fix)

Opened this issue · 0 comments

          I faced the same issue and taking note of what nikhil153 mentioned, did the following fix in line 136 of rapl_device.py:

if domain_name_file.readline() == 'package-' + str(socket_id) + '\n': #removed this
if "package-" in domain_name_file.readline(): #replaced with this

Hope this helps others too!

Originally posted by @venugopalansgr in #14 (comment)