- scheduler: in get_app_version() we check if our current best

app version is a CUDA app and we don't need more CUDA work.
    Need to do this for CPU as well.

svn path=/trunk/boinc/; revision=17598
This commit is contained in:
David Anderson 2009-03-16 15:53:35 +00:00
parent 0e151ee5df
commit 2eceda0180
2 changed files with 25 additions and 0 deletions

View File

@ -3022,3 +3022,11 @@ Rom 13 Mar 2009
ViewResources.cpp
win_build/
boincmgr_curl.vcproj
David 16 Mar 2009
- scheduler: in get_app_version() we check if our current best
app version is a CUDA app and we don't need more CUDA work.
Need to do this for CPU as well.
sched/
sched_send.cpp

View File

@ -247,6 +247,23 @@ BEST_APP_VERSION* get_app_version(WORKUNIT& wu, bool check_req) {
g_wreq->best_app_versions.erase(bavi);
break;
}
// same, CPU
//
if (check_req
&& g_wreq->rsc_spec_request
&& !bavp->host_usage.ncudas
&& !g_wreq->need_cpu()
) {
if (config.debug_version_select) {
log_messages.printf(MSG_NORMAL,
"[version] have CPU version but no more CPU work needed\n"
);
}
g_wreq->best_app_versions.erase(bavi);
break;
}
return bavp;
}
bavi++;