From 7787e48172e517c9202b84d79756577c99c69776 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 20 Feb 2014 11:08:24 -0800 Subject: [PATCH] server: add intel_gpu case to gpu_ratios.php --- html/user/gpu_ratios.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/html/user/gpu_ratios.php b/html/user/gpu_ratios.php index 2ad1b7c48a..db3f1548e6 100644 --- a/html/user/gpu_ratios.php +++ b/html/user/gpu_ratios.php @@ -30,6 +30,8 @@ $ati_scale_sum = 0; $ati_credit_sum = 0; $nvidia_scale_sum = 0; $nvidia_credit_sum = 0; +$intel_gpu_scale_sum = 0; +$intel_gpu_credit_sum = 0; $total_credit_sum= 0; $apps = BoincApp::enum("deprecated=0"); @@ -42,6 +44,9 @@ foreach ($apps as $app) { } else if (strstr($av->plan_class, "nvidia") || strstr($av->plan_class, "cuda")) { $nvidia_scale_sum += $av->pfc_scale * $av->expavg_credit; $nvidia_credit_sum += $av->expavg_credit; + } else if (strstr($av->plan_class, "intel_gpu")) { + $intel_gpu_scale_sum += $av->pfc_scale * $av->expavg_credit; + $intel_gpu_credit_sum += $av->expavg_credit; } else { $cpu_scale_sum += $av->pfc_scale * $av->expavg_credit; $cpu_credit_sum += $av->expavg_credit; @@ -63,5 +68,8 @@ if ($ati_credit_sum) { if ($nvidia_credit_sum) { echo " ", $nvidia_scale_sum/$nvidia_credit_sum, "\n"; } +if ($intel_gpu_credit_sum) { + echo " ", $intel_gpu_scale_sum/$intel_gpu_credit_sum, "\n"; +} echo "\n"; ?>