Updated nvidia poller app: handle slightly changed nvidia-smi output formatting properly (#16158)

This commit is contained in:
Simon Wüllhorst
2024-08-21 08:28:18 +02:00
committed by GitHub
parent 7b98721e32
commit d2df5ac9d7

View File

@@ -33,7 +33,7 @@ $metrics = [];
foreach ($gpuArray as $index => $gpu) {
$stats = explode(',', $gpu);
$stats_count = count($stats);
if ($stats_count == 22) {
if ($stats_count == 22 || $stats_count == 23) {
[$gpu, $pwr, $temp, $memtemp, $sm, $mem, $enc, $dec, $jpg, $ofa,
$mclk, $pclk, $pviol, $tviol, $fb, $bar1, $ccpm, $sbecc, $dbecc,
$pci, $rxpci, $txpci] = $stats;