mirror of https://github.com/BOINC/boinc.git
- 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:
parent
0e151ee5df
commit
2eceda0180
|
@ -3022,3 +3022,11 @@ Rom 13 Mar 2009
|
||||||
ViewResources.cpp
|
ViewResources.cpp
|
||||||
win_build/
|
win_build/
|
||||||
boincmgr_curl.vcproj
|
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
|
||||||
|
|
|
@ -247,6 +247,23 @@ BEST_APP_VERSION* get_app_version(WORKUNIT& wu, bool check_req) {
|
||||||
g_wreq->best_app_versions.erase(bavi);
|
g_wreq->best_app_versions.erase(bavi);
|
||||||
break;
|
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;
|
return bavp;
|
||||||
}
|
}
|
||||||
bavi++;
|
bavi++;
|
||||||
|
|
Loading…
Reference in New Issue