mlco2 / codecarbon

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

Unknown CPU: 12th Gen Intel(R) Core(TM) i7-1270P #419

Closed AndrewLister-STFC closed 12 months ago

AndrewLister-STFC commented 1 year ago

Description

When trying to initialise an EmissionsTracker I got a similar result to #300. I thought I'd report it so you can update the list if needed.

What I Did

Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from codecarbon import EmissionsTracker
>>> a = EmissionsTracker()
[codecarbon INFO @ 16:44:06] [setup] RAM Tracking...
[codecarbon INFO @ 16:44:06] [setup] GPU Tracking...
[codecarbon INFO @ 16:44:06] No GPU found.
[codecarbon INFO @ 16:44:06] [setup] CPU Tracking...
[codecarbon WARNING @ 16:44:06] No CPU tracking mode found. Falling back on CPU constant mode.
[codecarbon WARNING @ 16:44:07] We saw that you have a 12th Gen Intel(R) Core(TM) i7-1270P but we don't know it. Please contact us.
[codecarbon INFO @ 16:44:07] CPU Model on constant consumption mode: 12th Gen Intel(R) Core(TM) i7-1270P
[codecarbon INFO @ 16:44:07] >>> Tracker's metadata:
[codecarbon INFO @ 16:44:07]   Platform system: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
[codecarbon INFO @ 16:44:07]   Python version: 3.10.6
[codecarbon INFO @ 16:44:07]   CodeCarbon version: 2.2.3
[codecarbon INFO @ 16:44:07]   Available RAM : 15.344 GB
[codecarbon INFO @ 16:44:07]   CPU count: 16
[codecarbon INFO @ 16:44:07]   CPU model: 12th Gen Intel(R) Core(TM) i7-1270P
[codecarbon INFO @ 16:44:07]   GPU count: None
[codecarbon INFO @ 16:44:07]   GPU model: None
inimaz commented 1 year ago

Thanks for reporting this. According to the docs of your processor (https://www.intel.com/content/www/us/en/products/sku/226255/intel-core-i71270p-processor-18m-cache-up-to-4-80-ghz/specifications.html) the TDP is 64 W.

Someone will add it to https://github.com/mlco2/codecarbon/blob/master/codecarbon/data/hardware/cpu_power.csv

benoit-cty commented 1 year ago

I've added it, it will be in a futur release.