mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 18:09:54 +00:00
benchs: ignore some weird device names and x16r algo
This commit is contained in:
parent
0019ca611d
commit
88cfe6faf7
2 changed files with 15 additions and 2 deletions
|
@ -22,6 +22,11 @@ function BenchUpdateChips()
|
||||||
foreach ($benchs as $bench) {
|
foreach ($benchs as $bench) {
|
||||||
if (empty($bench->vendorid) || empty($bench->device)) continue;
|
if (empty($bench->vendorid) || empty($bench->device)) continue;
|
||||||
|
|
||||||
|
if ($bench->algo == 'x16r') { // not constant, inaccurate
|
||||||
|
$bench->delete();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$dups = getdbocount('db_benchmarks', "vendorid=:vid AND client=:client AND os=:os AND driver=:drv AND throughput=:thr AND userid=:uid",
|
$dups = getdbocount('db_benchmarks', "vendorid=:vid AND client=:client AND os=:os AND driver=:drv AND throughput=:thr AND userid=:uid",
|
||||||
array(':vid'=>$bench->vendorid, ':client'=>$bench->client, ':os'=>$bench->os, ':drv'=>$bench->driver,':thr'=>$bench->throughput,':uid'=>$bench->userid)
|
array(':vid'=>$bench->vendorid, ':client'=>$bench->client, ':os'=>$bench->os, ':drv'=>$bench->driver,':thr'=>$bench->throughput,':uid'=>$bench->userid)
|
||||||
);
|
);
|
||||||
|
@ -48,6 +53,10 @@ function BenchUpdateChips()
|
||||||
$bench->delete();
|
$bench->delete();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ($bench->chip == 'GPU' || $bench->chip == 'Graphics Device') {
|
||||||
|
$bench->delete();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
debuglog("bench: {$bench->device} ($chip)...");
|
debuglog("bench: {$bench->device} ($chip)...");
|
||||||
$bench->save();
|
$bench->save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,8 +163,11 @@ function getChipName($row)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// nNidia
|
// nVidia
|
||||||
$words = explode(' ', $row['device']);
|
$device = str_replace(' with Max-Q Design', '', $row['device']);
|
||||||
|
$device = str_replace(' COLLECTORS EDITION', '', $device);
|
||||||
|
|
||||||
|
$words = explode(' ', $device);
|
||||||
$chip = array_pop($words);
|
$chip = array_pop($words);
|
||||||
$vendorid = $row['vendorid'];
|
$vendorid = $row['vendorid'];
|
||||||
if (!is_numeric($chip)) {
|
if (!is_numeric($chip)) {
|
||||||
|
@ -177,6 +180,7 @@ function getChipName($row)
|
||||||
$chip = str_replace('760 Ti OEM','760 Ti', $chip);
|
$chip = str_replace('760 Ti OEM','760 Ti', $chip);
|
||||||
$chip = str_replace(' (Pascal)',' Pascal', $chip);
|
$chip = str_replace(' (Pascal)',' Pascal', $chip);
|
||||||
$chip = str_replace('Tesla P100-SXM2-16GB','Tesla P100', $chip);
|
$chip = str_replace('Tesla P100-SXM2-16GB','Tesla P100', $chip);
|
||||||
|
$chip = str_replace('Tesla P100-PCIE-16GB','Tesla P100', $chip);
|
||||||
$chip = str_replace('Tesla V100-SXM2-16GB','Tesla V100', $chip);
|
$chip = str_replace('Tesla V100-SXM2-16GB','Tesla V100', $chip);
|
||||||
$chip = preg_replace('/ASUS ([6-9]\d\dM)/','\1', $chip); // ASUS 940M
|
$chip = preg_replace('/ASUS ([6-9]\d\dM)/','\1', $chip); // ASUS 940M
|
||||||
$chip = preg_replace('/MSI ([6-9]\d\dM)/','\1', $chip); // MSI 840M
|
$chip = preg_replace('/MSI ([6-9]\d\dM)/','\1', $chip); // MSI 840M
|
||||||
|
|
Loading…
Add table
Reference in a new issue