Skip to content

Commit ab080e6

Browse files
authored
Merge pull request #787 from mlco2/cpu_AMD_EPYC_7R13
Add AMD EPYC 7R13
2 parents f346008 + 9200015 commit ab080e6

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

codecarbon/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.0_rc2"
1+
__version__ = "3.0.0_rc3"

codecarbon/data/hardware/cpu_power.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ AMD EPYC 7F32,180
581581
AMD EPYC 7F52,240
582582
AMD EPYC 7F72,240
583583
AMD EPYC 7H12,280
584+
AMD EPYC 7R13,225
584585
AMD EPYC 8024P,90
585586
AMD EPYC 8024PN,80
586587
AMD EPYC 8124P,125

codecarbon/external/hardware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ def _get_power_from_cpu_load(self):
213213
cpu_load = psutil.cpu_percent(interval=0.5)
214214
power = self._calculate_power_from_cpu_load(tdp, cpu_load, self._model)
215215
logger.debug(
216-
f"A TDP of {self._tdp} W and a CPU load of {cpu_load:.1f}% give an estimation of {power} W for whole machine."
216+
f"A TDP of {self._tdp} W and a CPU load of {cpu_load:.1f}% give an estimation of {power:1f} W for whole machine."
217217
)
218218
elif self._tracking_mode == "process":
219219
cpu_load = self._process.cpu_percent(interval=0.5) / self._cpu_count
220220
power = self._calculate_power_from_cpu_load(
221221
self._tdp, cpu_load, self._model
222222
)
223223
logger.debug(
224-
f"A TDP of {self._tdp} W and a CPU load of {cpu_load * 100:.1f}% give an estimation of {power} W for process {self._pid}."
224+
f"A TDP of {self._tdp} W and a CPU load of {cpu_load:.1f}% give an estimation of {power:1f} W for process {self._pid}."
225225
)
226226
else:
227227
raise Exception(f"Unknown tracking_mode {self._tracking_mode}")

docs/edit/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "BCG GAMMA, Comet.ml, Haverford College, MILA, Data For Good"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "3.0.0_rc2"
26+
release = "3.0.0_rc3"
2727

2828

2929
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ include = [
183183
]
184184

185185
[tool.bumpver]
186-
current_version = "3.0.0_rc2"
186+
current_version = "3.0.0_rc3"
187187
version_pattern = "MAJOR.MINOR.PATCH[_TAGNUM]"
188188

189189
[tool.bumpver.file_patterns]

0 commit comments

Comments
 (0)