BOINC web: recognize "nvidia" in plan class names

This commit is contained in:
David Anderson 2016-09-06 16:23:11 -07:00
parent 1ef9299ada
commit 7a9c798081
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}