mirror of https://github.com/BOINC/boinc.git
- scheduler: add <primary_platform_only> config option:
send only 64-bit app versions to 64-bit hosts (the default is to send whatever app version is fastest) svn path=/trunk/boinc/; revision=22183
This commit is contained in:
parent
3e7e2e7914
commit
d79ca6a9f2
|
@ -5859,3 +5859,12 @@ David 10 Aug 2010
|
|||
|
||||
html/user/
|
||||
host_app_versions.php
|
||||
|
||||
David 10 Aug 2010
|
||||
- scheduler: add <primary_platform_only> config option:
|
||||
send only 64-bit app versions to 64-bit hosts
|
||||
(the default is to send whatever app version is fastest)
|
||||
|
||||
sched/
|
||||
sched_config.cpp,h
|
||||
sched_version.cpp
|
||||
|
|
|
@ -258,6 +258,7 @@ int SCHED_CONFIG::parse(FILE* f) {
|
|||
if (xp.parse_str(tag, "symstore", symstore, sizeof(symstore))) continue;
|
||||
|
||||
if (xp.parse_bool(tag, "workload_sim", workload_sim)) continue;
|
||||
if (xp.parse_bool(tag, "primary_platform_only", primary_platform_only)) continue;
|
||||
|
||||
//////////// SCHEDULER LOG FLAGS /////////
|
||||
|
||||
|
|
|
@ -114,10 +114,6 @@ struct SCHED_CONFIG {
|
|||
bool matchmaker;
|
||||
int max_ncpus;
|
||||
JOB_LIMITS max_jobs_in_progress;
|
||||
#if 0
|
||||
int max_wus_in_progress;
|
||||
int max_wus_in_progress_gpu;
|
||||
#endif
|
||||
int max_wus_to_send; // max results per RPC is this * mult
|
||||
int min_core_client_version;
|
||||
int min_core_client_version_announced;
|
||||
|
@ -150,6 +146,12 @@ struct SCHED_CONFIG {
|
|||
char symstore[256];
|
||||
bool workload_sim;
|
||||
// Do workload simulation in deciding whether to send a result
|
||||
bool primary_platform_only;
|
||||
// use app versions only for the client's primary platform
|
||||
// e.g. send only 64-bit versions to 64-bit clients.
|
||||
// Do this only if you have 64-bit versions for all platforms,
|
||||
// and you're sure that your 64-bit versions are
|
||||
// always faster than the corresponding 32-bit versions
|
||||
|
||||
// scheduler log flags
|
||||
//
|
||||
|
|
|
@ -509,6 +509,7 @@ BEST_APP_VERSION* get_app_version(
|
|||
bavp->avp = NULL;
|
||||
bool no_version_for_platform = true;
|
||||
for (i=0; i<g_request->platforms.list.size(); i++) {
|
||||
if (config.primary_platform_only && i>0) break;
|
||||
PLATFORM* p = g_request->platforms.list[i];
|
||||
for (j=0; j<ssp->napp_versions; j++) {
|
||||
HOST_USAGE host_usage;
|
||||
|
|
Loading…
Reference in New Issue