MCPcopy Create free account
hub / github.com/mlco2/codecarbon / cpu_load_task

Function cpu_load_task

examples/full_cpu.py:11–15  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

9
10
11def cpu_load_task(number):
12 a = 0
13 for i in range(1000):
14 for i in range(int(1e6)):
15 a = a + i**number
16
17
18tracker = EmissionsTracker(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…