mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.02k stars 158 forks source link

allow user to specify default cpu power #389

Closed inimaz closed 1 year ago

inimaz commented 1 year ago

Let the user specify the TDP/ CPU power if the model of the machine is not known.

Before

  1. The emission tracker goes into constant mode.
  2. The user is using a machine that is not in the internal list.
  3. The power of the CPU taken by default is 85 W.

After this PR

  1. The emission tracker goes into constant mode.
  2. The user is using a machine that is not in the internal list.
  3. The emission tracker checks the default_cpu_power value and uses it as power.
  4. If not defined, the power of the CPU taken by default is 85 W.