mirror of https://github.com/BOINC/boinc.git
- client: in computing "anticipated" STD, scale by ninstances
(from John McLeod) svn path=/trunk/boinc/; revision=19959
This commit is contained in:
parent
9070c5ed56
commit
4b0cae80f5
|
@ -10222,3 +10222,10 @@ David 17 Dec 2009
|
|||
|
||||
client/
|
||||
cpu_sched.cpp
|
||||
|
||||
David 17 Dec 2009
|
||||
- client: in computing "anticipated" STD, scale by ninstances
|
||||
(from John McLeod)
|
||||
|
||||
client/
|
||||
cpu_sched.cpp
|
||||
|
|
|
@ -635,9 +635,12 @@ static bool schedule_if_possible(
|
|||
}
|
||||
proc_rsc.schedule(rp);
|
||||
double dt = gstate.global_prefs.cpu_scheduling_period();
|
||||
rp->project->cpu_pwf.anticipated_debt -= dt*rp->avp->avg_ncpus;
|
||||
rp->project->cuda_pwf.anticipated_debt -= dt*rp->avp->ncudas;
|
||||
rp->project->ati_pwf.anticipated_debt -= dt*rp->avp->natis;
|
||||
|
||||
// project STD at end of scheduling period
|
||||
//
|
||||
rp->project->cpu_pwf.anticipated_debt -= dt*rp->avp->avg_ncpus/cpu_work_fetch.ninstances;
|
||||
rp->project->cuda_pwf.anticipated_debt -= dt*rp->avp->ncudas/cuda_work_fetch.ninstances;
|
||||
rp->project->ati_pwf.anticipated_debt -= dt*rp->avp->natis/ati_work_fetch.ninstances;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue