mirror of https://github.com/BOINC/boinc.git
- scheduler: fix message that showed running_frac as garbage;
show FLOPS as GFLOPS svn path=/trunk/boinc/; revision=16729
This commit is contained in:
parent
e6c6fbed07
commit
c0642fd5c2
|
@ -10296,3 +10296,11 @@ David 19 Dec 2008
|
|||
sched/
|
||||
sched_plan.cpp
|
||||
server_types.cpp
|
||||
|
||||
David 19 Dec 2008
|
||||
- scheduler: fix message that showed running_frac as garbage;
|
||||
show FLOPS as GFLOPS
|
||||
|
||||
sched/
|
||||
sched_plan.cpp
|
||||
sched_send.cpp
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
// (and write-protect that)
|
||||
// In either case, put your version under source-code control, e.g. SVN
|
||||
|
||||
#include "str_util.h"
|
||||
#include "sched_config.h"
|
||||
#include "sched_msgs.h"
|
||||
#include "sched_plan.h"
|
||||
|
@ -113,8 +114,9 @@ bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
|
|||
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
|
||||
"CUDA app estimated %.2f GFLOPS (clock %d count %d)\n",
|
||||
hu.flops/GIGA, cp2->prop.clockRate,
|
||||
cp2->prop.multiProcessorCount
|
||||
);
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -354,10 +354,10 @@ double estimate_duration(WORKUNIT& wu, BEST_APP_VERSION& bav) {
|
|||
// clamp running_frac and DCF to a reasonable range
|
||||
//
|
||||
if (rf > 1) {
|
||||
log_messages.printf(MSG_NORMAL, "running_frac=%f; setting to 1\n");
|
||||
log_messages.printf(MSG_NORMAL, "running_frac=%f; setting to 1\n", rf);
|
||||
rf = 1;
|
||||
} else if (rf < .1) {
|
||||
log_messages.printf(MSG_NORMAL, "running_frac=%f; setting to 0.1\n");
|
||||
log_messages.printf(MSG_NORMAL, "running_frac=%f; setting to 0.1\n", rf);
|
||||
rf = .1;
|
||||
}
|
||||
double ed = edu/rf;
|
||||
|
@ -759,10 +759,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 %s; %f FLOPS\n",
|
||||
"[HOST#%d] Sending app_version %s %d %d %s; %.2f GFLOPS\n",
|
||||
g_reply->host.id, app->name,
|
||||
avp2->platformid, avp2->version_num, avp2->plan_class,
|
||||
bavp->host_usage.flops
|
||||
bavp->host_usage.flops/GIGA
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue