- client: computation of # idle CUDA instances was wrong

svn path=/trunk/boinc/; revision=17087
This commit is contained in:
David Anderson 2009-01-30 21:49:20 +00:00
parent b7a2c227ca
commit 9e7cb42084
2 changed files with 7 additions and 1 deletions

View File

@ -993,3 +993,9 @@ David 30 Jan 2009
sched/
sched_send.cpp
server_types.cpp,h
David 30 Jan 2009
- client: computation of # idle CUDA instances was wrong
client/
rr_sim.cpp

View File

@ -257,7 +257,7 @@ void CLIENT_STATE::rr_simulation() {
cpu_work_fetch.nidle_now = ncpus - sim_status.active_ncpus;
if (cpu_work_fetch.nidle_now < 0) cpu_work_fetch.nidle_now = 0;
if (coproc_cuda) {
cuda_work_fetch.nidle_now = coproc_cuda->count - coproc_cuda->used;
cuda_work_fetch.nidle_now = coproc_cuda->count - sim_status.active_cudas;
if (cuda_work_fetch.nidle_now < 0) cuda_work_fetch.nidle_now = 0;
}