Skip to content

Commit

Permalink
GPU list script: fix bug, and include anonymous platform hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpanderson committed Oct 20, 2014
1 parent a26f310 commit 3136342
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions html/user/gpu_list.php
Expand Up @@ -45,7 +45,7 @@ function get_gpu_model($x, $vendor) {
function add_model($model, $r, $wu, &$models) {
if (array_key_exists($model, $models)) {
$models[$model]->count++;
$models[$model]->time += $r->elapsed_time;
$models[$model]->time += $r->elapsed_time/$wu->rsc_fpops_est;
} else {
$x = new StdClass;
$x->count = 1;
Expand Down Expand Up @@ -76,7 +76,15 @@ function get_gpu_list($vendor, $alt_vendor=null) {
foreach($avs as $av) {
$av_ids .= "$av->id, ";
}
$av_ids .= "0";
if ($vendor == "cuda") {
$av_ids .= "-3";
} else if ($vendor == "ati") {
$av_ids .= "-4";
} else if ($vendor == "intel_gpu") {
$av_ids .= "-5";
} else {
$av_ids .= "0";
}

$t = time() - 30*86400;
//echo "start enum $vendor $av_ids\n";
Expand Down Expand Up @@ -196,7 +204,7 @@ function show_vendor($vendor, $x) {
}

page_head(tra("Top GPU models"));
echo tra("The following lists show the most productive GPU models on different platforms. Relative speeds are shown in parentheses.");
echo tra("The following lists show the most productive GPU models on different platforms. Relative speeds, measured by average elapsed time of tasks, are shown in parentheses.");
show_vendor("NVIDIA", $data->cuda);
show_vendor("ATI/AMD", $data->ati);
show_vendor("Intel", $data->intel_gpu);
Expand Down

0 comments on commit 3136342

Please sign in to comment.