mlco2 / codecarbon

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

Support for Intel(R) Xeon(R) Gold 6330N CPU @ 2.20GHz #547

Closed CodingTomo closed 1 month ago

CodingTomo commented 1 month ago

Description

Hi, I've been attempting to monitor the resource consumption of my models. I succeed on my local machine, but not on my server. Upon reading the logger, it appears that the problem is that the library does not have support for Intel(R) Xeon(R) Gold 6330N CPU @ 2.20GHz (please see the attached image).

Is it possible to add support for this CPU?

Schermata del 2024-05-13 11-17-50

inimaz commented 1 month ago

Hello @CodingTomo , thanks for using codecarbon!

We keep a database of the TDPs of several CPUs. I see that your CPU is included in the latest release. I see that you are using codecarbon version 2.3.5. so please update to the last version of codecarbon (>=2.4.1), your CPU Intel(R) Xeon(R) Gold 6330N should be included in it . Tell us if it is still not the case.

CodingTomo commented 1 month ago

Hello @inimaz, thank you for your answer.

I see I missed the latest update :) However, I'm still encountering the same problem. Do you have any other suggestions?

Schermata del 2024-05-13 14-18-33

benoit-cty commented 1 month ago

Thanks for reporting this. We did have "Intel Xeon Gold 6330N" in the database so it means we have a bug with the fuzzy compare.

I did a PR to fix that : https://github.com/mlco2/codecarbon/pull/551