- scheduler: apparently some hosts send GPU parameters that cause

the peak_flops to be negative (probably #processors = -1).
    This leads to negative credit.
    Fix: if peak flops is negative, set it to 50 GFLOPS
- web: fix email validate page


svn path=/trunk/boinc/; revision=23932
This commit is contained in:
David Anderson 2011-08-04 15:33:40 +00:00
parent 7c14104e20
commit 2d85ed6ed3
3 changed files with 14 additions and 4 deletions

View File

@ -4614,3 +4614,15 @@ David 3 Aug 2011
samples/vboxwrapper/
vbox.cpp,h
vboxwrapper.cpp
David 4 Aug 2011
- scheduler: apparently some hosts send GPU parameters that cause
the peak_flops to be negative (probably #processors = -1).
This leads to negative credit.
Fix: if peak flops is negative, set it to 50 GFLOPS
- web: fix email validate page
lib/
coproc.h
html/user/
validate_email_addr.php

View File

@ -20,8 +20,6 @@ require_once("../inc/boinc_db.inc");
require_once("../inc/util.inc");
require_once("../inc/email.inc");
check_get_args(array("x", "u"));
function send_validate_email() {
global $master_url;
$user = get_logged_in_user();

View File

@ -258,7 +258,7 @@ struct COPROC_NVIDIA : public COPROC {
//
int cores_per_proc = (prop.major>=2)?32:8;
double x = (1000.*prop.clockRate) * prop.multiProcessorCount * cores_per_proc * 2.;
peak_flops = x?x:5e10;
peak_flops = (x>0)?x:5e10;
}
bool check_running_graphics_app();
@ -294,7 +294,7 @@ struct COPROC_ATI : public COPROC {
void set_peak_flops() {
double x = attribs.numberOfSIMD * attribs.wavefrontSize * 2.5 * attribs.engineClock * 1.e6;
// clock is in MHz
peak_flops = x?x:5e10;
peak_flops = (x>0)?x:5e10;
}
void fake(double, int);
};