-
-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Describe the bug
When I start CodeCarbon in Python, I get the warning We saw that you have a 13th Gen Intel(R) Core(TM) i5-1335U but we don't know it. Please contact us. We will use the default power consumption of 4 W per thread for your 12 CPU, so 48W., so I contact you.
To Reproduce
- Have a 13th Gen Intel(R) Core(TM) i5-1335U
- In Python
from codecarbon import EmissionsTracker
t = EmissionsTracker()
Expected behavior
The CPU should be in your database.
Desktop (please complete the following information):
- OS: Ubuntu 22.04.5 LTS
- Python Version 3.10.12
- CodeCarbon Version 3.2.2
Additional context
I had quite some issues to make RAPL work. My file etc/sysfs.conf contains
mode class/powercap/intel-rapl/intel-rapl:0/energy_uj = 0444
mode class/powercap/intel-rapl/intel-rapl:1/energy_uj = 0444
mode class/powercap/intel-rapl:0/intel-rapl:0:0/energy_uj = 0444
mode class/powercap/intel-rapl:0/intel-rapl:0:1/energy_uj = 0444
It is also weird that the warnings say We will use the default power consumption of 4 W per thread for your 12 CPU, so 48W., because later it says Tracking Intel CPU via RAPL interface, so RAPL should be used instead of the fixed 48W power consumption. This may be another issue though.
Screenshots
Here is the full message
Python 3.10.12 (main, Jan 8 2026, 06:52:19) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from codecarbon import EmissionsTracker
>>> t = EmissionsTracker()
[codecarbon INFO @ 14:18:18] Codecarbon is taking the configuration from global file: /home/[REDACTED]/.codecarbon.config
[codecarbon INFO @ 14:18:18] Some variables are overriden by the local file: /home/[REDACTED]/.codecarbon.config
[codecarbon WARNING @ 14:18:18] Multiple instances of codecarbon are allowed to run at the same time.
[codecarbon INFO @ 14:18:18] [setup] RAM Tracking...
[codecarbon INFO @ 14:18:18] [setup] CPU Tracking...
[codecarbon WARNING @ 14:18:19] We saw that you have a 13th Gen Intel(R) Core(TM) i5-1335U but we don't know it. Please contact us.
[codecarbon WARNING @ 14:18:19] We will use the default power consumption of 4 W per thread for your 12 CPU, so 48W.
[codecarbon INFO @ 14:18:19] Tracking Intel CPU via RAPL interface
[codecarbon INFO @ 14:18:19] RAPL - Using 6 package domain(s) for CPU power measurement
[codecarbon INFO @ 14:18:19] RAPL - psys domain detected but not used (rapl_prefer_psys=False). Package domains are more consistent with CPU TDP specs. Set rapl_prefer_psys=True to use psys for total platform power (includes chipset, PCIe, etc.)
[codecarbon INFO @ 14:18:19] RAPL - Selected 1 unique RAPL domain(s) after deduplication
[codecarbon INFO @ 14:18:19] RAPL - Monitoring domain 'package-0' (displayed as 'Processor Energy Delta_0(kWh)') via MMIO at /sys/class/powercap/intel-rapl/subsystem/intel-rapl-mmio/intel-rapl-mmio:0/energy_uj
[codecarbon INFO @ 14:18:19] [setup] GPU Tracking...
[codecarbon INFO @ 14:18:19] No GPU found.
[codecarbon INFO @ 14:18:19] The below tracking methods have been set up:
RAM Tracking Method: RAM power estimation model
CPU Tracking Method: RAPL
GPU Tracking Method: Unspecified
[codecarbon INFO @ 14:18:19] >>> Tracker's metadata:
[codecarbon INFO @ 14:18:19] Platform system: Linux-6.8.0-94-generic-x86_64-with-glibc2.35
[codecarbon INFO @ 14:18:19] Python version: 3.10.12
[codecarbon INFO @ 14:18:19] CodeCarbon version: 3.2.2
[codecarbon INFO @ 14:18:19] Available RAM : 15.311 GB
[codecarbon INFO @ 14:18:19] CPU count: 12 thread(s) in 1 physical CPU(s)
[codecarbon INFO @ 14:18:19] CPU model: 13th Gen Intel(R) Core(TM) i5-1335U
[codecarbon INFO @ 14:18:19] GPU count: None
[codecarbon INFO @ 14:18:19] GPU model: None
[codecarbon INFO @ 14:18:22] Emissions data (if any) will be saved to file /home/[REDACTED]/emissions.csv