- client: work fetch fixes

svn path=/trunk/boinc/; revision=17090
This commit is contained in:
David Anderson 2009-01-31 00:20:13 +00:00
parent 8de66223fd
commit be31245c82
3 changed files with 13 additions and 5 deletions

View File

@ -1018,3 +1018,10 @@ David 30 Jan 2009
work_fetch.cpp
lib/
coproc.cpp
David 30 Jan 2009
- client: work fetch fixes
client/
work_fetch.cpp
scheduler_op.cpp

View File

@ -221,7 +221,7 @@ int SCHEDULER_OP::start_rpc(PROJECT* p) {
if (coproc_cuda) {
msg_printf(p, MSG_INFO,
"CUDA work request: %.2f seconds; %d idle GPUs",
cuda_work_fetch.req_secs, cuda_work_fetch.req_instances
coproc_cuda->req_secs, coproc_cuda->req_instances
);
}
}

View File

@ -315,10 +315,11 @@ PROJECT* WORK_FETCH::choose_project() {
if (request_cuda) {
cuda_work_fetch.set_request(p);
}
if (coproc_cuda) {
coproc_cuda->req_secs = cuda_work_fetch.req_secs;
coproc_cuda->req_instances = cuda_work_fetch.req_instances;
}
}
if (coproc_cuda) {
coproc_cuda->req_secs = cuda_work_fetch.req_secs;
coproc_cuda->req_instances = cuda_work_fetch.req_instances;
coproc_cuda->estimated_delay = cuda_work_fetch.estimated_delay;
}
if (log_flags.work_fetch_debug) {
print_state();