From 8c965f2625756fe9249e7f9c942d06762e65aca4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 17 Dec 2008 20:53:46 +0000 Subject: [PATCH] - scheduler: add some debugging msgs svn path=/trunk/boinc/; revision=16711 --- checkin_notes | 9 ++++++++- sched/sched_plan.cpp | 13 +++++++++++-- sched/sched_send.cpp | 6 ++++-- sched/server_types.cpp | 2 ++ 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/checkin_notes b/checkin_notes index 02031903f9..1fb146d61b 100644 --- a/checkin_notes +++ b/checkin_notes @@ -10208,4 +10208,11 @@ Rom 17 Dec 2008 curl/ - \ No newline at end of file + +David 17 Dec 2008 + - scheduler: add some debugging msgs + + sched/ + sched_plan.cpp + sched_send.cpp + server_types.cpp diff --git a/sched/sched_plan.cpp b/sched/sched_plan.cpp index af24d4dbf5..d20ec71561 100644 --- a/sched/sched_plan.cpp +++ b/sched/sched_plan.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; } } diff --git a/sched/sched_send.cpp b/sched/sched_send.cpp index 9239d14f34..b5c74ba98d 100644 --- a/sched/sched_send.cpp +++ b/sched/sched_send.cpp @@ -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 ); } } diff --git a/sched/server_types.cpp b/sched/server_types.cpp index 85621f52ed..ac88df9eec 100644 --- a/sched/server_types.cpp +++ b/sched/server_types.cpp @@ -1048,6 +1048,7 @@ int HOST::parse_time_stats(FILE* fin) { if (parse_double(buf, "", on_frac)) continue; if (parse_double(buf, "", connected_frac)) continue; if (parse_double(buf, "", active_frac)) continue; +#if 0 if (match_tag(buf, "")) continue; if (match_tag(buf, "")) continue; if (match_tag(buf, "")) 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; }