mirror of https://github.com/BOINC/boinc.git
- scheduler: add some debugging msgs
svn path=/trunk/boinc/; revision=16711
This commit is contained in:
parent
0ce6a01d41
commit
8c965f2625
|
@ -10208,4 +10208,11 @@ Rom 17 Dec 2008
|
|||
|
||||
curl/
|
||||
<various Files>
|
||||
|
||||
|
||||
David 17 Dec 2008
|
||||
- scheduler: add some debugging msgs
|
||||
|
||||
sched/
|
||||
sched_plan.cpp
|
||||
sched_send.cpp
|
||||
server_types.cpp
|
||||
|
|
|
@ -68,8 +68,11 @@ bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
|
|||
COPROC* cp = sreq.coprocs.coprocs[i];
|
||||
if (!strcmp(cp->type, "CUDA")) {
|
||||
COPROC_CUDA* cp2 = (COPROC_CUDA*) cp;
|
||||
if ((cp2->prop.major)*100 + (cp2->prop.minor) <= 100) {
|
||||
log_messages.printf(MSG_DEBUG, "CUDA version < 1.1\n");
|
||||
int v = (cp2->prop.major)*100 + cp2->prop.minor;
|
||||
if (v < 101) {
|
||||
log_messages.printf(MSG_DEBUG,
|
||||
"CUDA version %d < 1.1\n", v
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -98,6 +101,12 @@ bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
|
|||
if (!x) x = y;
|
||||
|
||||
hu.flops = 5e10 * (x/y);
|
||||
if (config.debug_version_select) {
|
||||
log_messages.printf(MSG_DEBUG,
|
||||
"CUDA app estimated %f FLOPS (clock %d count %d)\n",
|
||||
hu.flops, cp2->prop.clockRate, cp2->prop.multiProcessorCount
|
||||
);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -734,8 +734,10 @@ int add_wu_to_reply(
|
|||
g_reply->insert_app_version_unique(*avp2);
|
||||
if (config.debug_send) {
|
||||
log_messages.printf(MSG_DEBUG,
|
||||
"[HOST#%d] Sending app_version %s %d %d\n",
|
||||
g_reply->host.id, app->name, avp2->platformid, avp2->version_num
|
||||
"[HOST#%d] Sending app_version %s %d %d %s; %f FLOPS\n",
|
||||
g_reply->host.id, app->name,
|
||||
avp2->platformid, avp2->version_num, avp2->plan_class,
|
||||
bavp->host_usage.flops
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1048,6 +1048,7 @@ int HOST::parse_time_stats(FILE* fin) {
|
|||
if (parse_double(buf, "<on_frac>", on_frac)) continue;
|
||||
if (parse_double(buf, "<connected_frac>", connected_frac)) continue;
|
||||
if (parse_double(buf, "<active_frac>", active_frac)) continue;
|
||||
#if 0
|
||||
if (match_tag(buf, "<outages>")) continue;
|
||||
if (match_tag(buf, "<outage>")) continue;
|
||||
if (match_tag(buf, "<start>")) continue;
|
||||
|
@ -1056,6 +1057,7 @@ int HOST::parse_time_stats(FILE* fin) {
|
|||
"HOST::parse_time_stats(): unrecognized: %s\n",
|
||||
buf
|
||||
);
|
||||
#endif
|
||||
}
|
||||
return ERR_XML_PARSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue