MCPcopy Create free account
hub / github.com/mlco2/codecarbon / test_rapl_fix.py

File test_rapl_fix.py

examples/rapl/test_rapl_fix.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env python3
2"""
3Test script to compare RAPL domains (package-0 vs psys) with reliable CPU stress using 7z b.
4This helps diagnose why RAPL readings might not match powerstat measurements.

Callers

nothing calls this directly

Calls 6

read_max_energyFunction · 0.85
terminateMethod · 0.80
waitMethod · 0.80
killMethod · 0.80
measure_powerFunction · 0.70
read_energyFunction · 0.70

Tested by

no test coverage detected