Multi-GPU
Auto-detection
By default, Matcha detects all NVIDIA GPUs on the machine and sums power readings across all of them. No flags needed.
How it works
Every 100ms, Matcha reads nvmlDeviceGetPowerUsage for each monitored GPU and sums the values into a single power reading. Trapezoidal integration then computes total energy from these summed readings.
avg_power and peak_power in the output reflect the aggregate across all monitored GPUs. For example, 8 GPUs each drawing 500W would show avg_power:4000W.