From 11c023fdc6bd5270b1d5dae51c809d39b21a8105 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 21 Sep 2009 20:41:28 +0000 Subject: [PATCH] - work fetch tweak svn path=/trunk/boinc/; revision=19123 --- client/work_fetch.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index abc1f729fb..8ed932e507 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -413,7 +413,14 @@ void WORK_FETCH::compute_work_request(PROJECT* p) { p->cpu_pwf.backoff_time = cpu_save; p->cuda_pwf.backoff_time = cuda_save; p->ati_pwf.backoff_time = ati_save; - if (p == pbest) return; + if (p == pbest) { + // Ask for work for all devices w/ a shortfall. + // Otherwise we can have a situation where a GPU is idle, + // we ask only for GPU work, and the project never has any + // + work_fetch.set_shortfall_requests(pbest); + return; + } // if not, don't request any work //