ecal.hardware.profiles¶
Functions
|
Get a hardware profile by name. |
List all available hardware profiles. |
Classes
|
Hardware profile for energy estimation. |
- class ecal.hardware.profiles.HardwareProfile(name, flops_per_second_fp32, flops_per_second_fp16, tdp_watts, gpu_power_watts, idle_power_watts, device)[source]¶
Bases:
objectHardware profile for energy estimation.
- Parameters:
name (str) – Human-readable device name (e.g. “NVIDIA H100 SXM”).
flops_per_second_fp32 (float) – Peak throughput in FLOPS at FP32 precision.
flops_per_second_fp16 (float) – Peak throughput in FLOPS at FP16 precision.
tdp_watts (float) – Thermal design power in watts; used as the processor’s power draw when converting FLOP-derived time into energy.
gpu_power_watts (float) – GPU power draw in watts under load (0 for CPU-only profiles).
idle_power_watts (float) – Idle power draw in watts.
device (str) – Backend device identifier (e.g. “cpu”, “cuda”, “mps”).
- ecal.hardware.profiles.get_profile(name)[source]¶
Get a hardware profile by name.