Capgemini-Invent-France / CarbonAI

Python package to monitor the power consumption of any algorithm
MIT License
46 stars 12 forks source link

Raise meaningful error when IntelPowerGadget doesn't have sufficient privileges #22

Open Neyri opened 2 years ago

Neyri commented 2 years ago

On MacOs, when the user didn't provide Intel Power Gadget with sufficient privileges and try to run carbonai, they get the following error KeyError: 'Cumulative process CPU Energy (mWh)' We should check if the user has provided those privileges when initializing the PowerGadget and raise a meaningful error if it's not the case