powerapi-ng / pyJoules

A Python library to capture the energy consumption of code snippets
MIT License
70 stars 10 forks source link

Unable to access package domains (and recommended fix) #34

Open venugopalansgr opened 7 months ago

venugopalansgr commented 7 months ago
          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 https://github.com/powerapi-ng/pyJoules/issues/14#issuecomment-2049008761