You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_sources/methodology.rst.txt
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,7 @@ CPU metrics priority
237
237
238
238
CodeCarbon will first try to read the energy consumption of the CPU from low level interface like RAPL or ``powermetrics``.
239
239
If none of the tracking tools are available, CodeCarbon will be switched to a fallback mode:
240
+
240
241
- It will first detect which CPU hardware is currently in use, and then map it to a data source listing 2000+ Intel and AMD CPUs and their corresponding thermal design powers (TDPs).
241
242
- If the CPU is not found in the data source, a global constant will be applied.
242
243
- If ``psutil`` is available, CodeCarbon will try to estimate the energy consumption from the TDP and the CPU load.
@@ -317,6 +318,7 @@ The equivalent emissions are calculated using this formula:
Copy file name to clipboardExpand all lines: docs/edit/methodology.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,7 @@ CPU metrics priority
237
237
238
238
CodeCarbon will first try to read the energy consumption of the CPU from low level interface like RAPL or ``powermetrics``.
239
239
If none of the tracking tools are available, CodeCarbon will be switched to a fallback mode:
240
+
240
241
- It will first detect which CPU hardware is currently in use, and then map it to a data source listing 2000+ Intel and AMD CPUs and their corresponding thermal design powers (TDPs).
241
242
- If the CPU is not found in the data source, a global constant will be applied.
242
243
- If ``psutil`` is available, CodeCarbon will try to estimate the energy consumption from the TDP and the CPU load.
@@ -317,6 +318,7 @@ The equivalent emissions are calculated using this formula:
Copy file name to clipboardExpand all lines: docs/methodology.html
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -308,11 +308,13 @@ <h2>RAPL Metrics<a class="headerlink" href="#rapl-metrics" title="Link to this h
308
308
<sectionid="cpu-metrics-priority">
309
309
<h2>CPU metrics priority<aclass="headerlink" href="#cpu-metrics-priority" title="Link to this heading"></a></h2>
310
310
<p>CodeCarbon will first try to read the energy consumption of the CPU from low level interface like RAPL or <codeclass="docutils literal notranslate"><spanclass="pre">powermetrics</span></code>.
311
-
If none of the tracking tools are available, CodeCarbon will be switched to a fallback mode:
312
-
- It will first detect which CPU hardware is currently in use, and then map it to a data source listing 2000+ Intel and AMD CPUs and their corresponding thermal design powers (TDPs).
313
-
- If the CPU is not found in the data source, a global constant will be applied.
314
-
- If <codeclass="docutils literal notranslate"><spanclass="pre">psutil</span></code> is available, CodeCarbon will try to estimate the energy consumption from the TDP and the CPU load.
315
-
- CodeCarbon assumes that 50% of the TDP will be the average power consumption to make this approximation.</p>
311
+
If none of the tracking tools are available, CodeCarbon will be switched to a fallback mode:</p>
312
+
<ulclass="simple">
313
+
<li><p>It will first detect which CPU hardware is currently in use, and then map it to a data source listing 2000+ Intel and AMD CPUs and their corresponding thermal design powers (TDPs).</p></li>
314
+
<li><p>If the CPU is not found in the data source, a global constant will be applied.</p></li>
315
+
<li><p>If <codeclass="docutils literal notranslate"><spanclass="pre">psutil</span></code> is available, CodeCarbon will try to estimate the energy consumption from the TDP and the CPU load.</p></li>
316
+
<li><p>CodeCarbon assumes that 50% of the TDP will be the average power consumption to make this approximation.</p></li>
<p>The code doing this is available in <aclass="reference external" href="https://github.com/mlco2/codecarbon/blob/master/codecarbon/core/resource_tracker.py#L24">codecarbon/core/resource_tracker.py</a>.</p>
0 commit comments