Scheduler: populate sreq.host.credit_per_cpu_sec in case project wants

to send different work to slow and fast hosts.  I'm experimenting with
the use of this in the locality scheduler.

(DAVID: please check that the one-line change in handle_request.C is
globally harmless.)

svn path=/trunk/boinc/; revision=10388
This commit is contained in:
Bruce Allen 2006-06-17 17:08:02 +00:00
parent 0a778b8e1e
commit d81e37f29f
2 changed files with 13 additions and 0 deletions

View File

@ -6247,3 +6247,15 @@ David 17 June 2006
client/
client_state.h
cpu_sched.C
Bruce 17 June 2006
- Scheduler: populate sreq.host.credit_per_cpu_sec in case project wants
to send different work to slow and fast hosts. I'm experimenting with
the use of this in the locality scheduler.
(David: please check that the one-line change in handle_request.C is
globally harmless.)
sched/
handle_request.C

View File

@ -450,6 +450,7 @@ static int modify_host_struct(SCHEDULER_REQUEST& sreq, HOST& host) {
host.fix_nans();
compute_credit_rating(host);
sreq.host.credit_per_cpu_sec=host.credit_per_cpu_sec;
return 0;
}