From 7a9c798081f25a990ebf96494d774a476c24931e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 6 Sep 2016 16:23:11 -0700 Subject: [PATCH] BOINC web: recognize "nvidia" in plan class names --- doc/get_platforms.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/get_platforms.inc b/doc/get_platforms.inc index 3cca2e4397..4b84358003 100644 --- a/doc/get_platforms.inc +++ b/doc/get_platforms.inc @@ -40,6 +40,7 @@ function friendly_name($p) { } if (strlen($pc)) { if (strstr($pc, 'cuda')) $q .= " (NVIDIA GPU)"; + else if (strstr($pc, 'nvidia')) $q .= " (NVIDIA GPU)"; else if (strstr($pc, 'ati')) $q .= " (AMD/ATI GPU)"; else if (strstr($pc, 'intel_gpu')) $q .= " (Intel GPU)"; else if (strstr($pc, 'mt')) $q .= " (multicore)"; @@ -78,6 +79,7 @@ function get_platform_icon_flags($l) { if (strstr($p, "armv6")) $x->rasp_pi = true; if (strstr($pc, "ati")) $x->amd_gpu = true; if (strstr($pc, "cuda")) $x->nvidia_gpu = true; + if (strstr($pc, "nvidia")) $x->nvidia_gpu = true; if (strstr($pc, "intel_gpu")) $x->intel_gpu = true; if (strstr($pc, "vbox")) $x->vbox = true; }