greensoftwarelab / Energy-Languages

The complete set of tools for energy consumption analysis of programming languages, using Computer Language Benchmark Game
MIT License
691 stars 114 forks source link

Trouble loading msr #18

Open italomaia opened 4 years ago

italomaia commented 4 years ago

Hi. I have had some trouble running energy-languages. When I try to modprobe msr, I get a message the module is not found. Which package do I need to run it?

States commented 4 years ago

sudo modprobe msr is a system based command. You need to have a linux system and an architecture of sandy-bridge+ to use it. These are RAPL requirements for the measurement of energy. What OS are you using it on?

italomaia commented 4 years ago

Using ubuntu here on an i7-6500U which is skylake.

States commented 4 years ago

So it has to work. Did you run it in sudo? All RAPL based operations must be used in sudo

italomaia commented 4 years ago

Yes, all run as sudo.