mirror of https://github.com/BOINC/boinc.git
- client/manager: show coprocessor short-term debts
svn path=/trunk/boinc/; revision=19898
This commit is contained in:
parent
ff39c80efb
commit
34a489c9bb
|
@ -10047,3 +10047,13 @@ David 14 Dec 2009
|
|||
|
||||
client/
|
||||
coproc_detect.cpp
|
||||
|
||||
David 14 Dec 2009
|
||||
- client/manager: show coprocessor short-term debts
|
||||
|
||||
clientgui/
|
||||
DlgItemProperties.cpp
|
||||
lib/
|
||||
gui_rpc_client.h
|
||||
gui_rpc_client_ops.cpp
|
||||
|
||||
|
|
|
@ -143,13 +143,14 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
|
|||
|
||||
if (!project->non_cpu_intensive) {
|
||||
addSection(_("Scheduling"));
|
||||
addProperty(_("CPU scheduling priority"),wxString::Format(wxT("%0.2f"), project->short_term_debt));
|
||||
addProperty(_("CPU scheduling priority"),wxString::Format(wxT("%0.2f"), project->cpu_short_term_debt));
|
||||
addProperty(_("CPU work fetch priority"),wxString::Format(wxT("%0.2f"), project->cpu_long_term_debt));
|
||||
double x = project->cpu_backoff_time - dtime();
|
||||
if (x<0) x = 0;
|
||||
addProperty(_("CPU work fetch deferred for"), FormatTime(x));
|
||||
addProperty(_("CPU work fetch deferral interval"), FormatTime(project->cpu_backoff_interval));
|
||||
if (pDoc->state.have_cuda) {
|
||||
addProperty(_("NVIDIA GPU scheduling priority"),wxString::Format(wxT("%0.2f"), project->cuda_short_term_debt));
|
||||
addProperty(_("NVIDIA GPU work fetch priority"),wxString::Format(wxT("%0.2f"), project->cuda_debt));
|
||||
x = project->cuda_backoff_time - dtime();
|
||||
if (x<0) x = 0;
|
||||
|
@ -157,6 +158,7 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
|
|||
addProperty(_("NVIDIA GPU work fetch deferral interval"), FormatTime(project->cuda_backoff_interval));
|
||||
}
|
||||
if (pDoc->state.have_ati) {
|
||||
addProperty(_("ATI GPU scheduling priority"),wxString::Format(wxT("%0.2f"), project->ati_short_term_debt));
|
||||
addProperty(_("ATI GPU work fetch priority"),wxString::Format(wxT("%0.2f"), project->ati_debt));
|
||||
x = project->ati_backoff_time - dtime();
|
||||
if (x<0) x = 0;
|
||||
|
|
|
@ -122,14 +122,16 @@ public:
|
|||
double download_backoff;
|
||||
double upload_backoff;
|
||||
|
||||
double short_term_debt;
|
||||
double cpu_short_term_debt;
|
||||
double cpu_long_term_debt;
|
||||
double cpu_backoff_time;
|
||||
double cpu_backoff_interval;
|
||||
double cuda_debt;
|
||||
double cuda_short_term_debt;
|
||||
double cuda_backoff_time;
|
||||
double cuda_backoff_interval;
|
||||
double ati_debt;
|
||||
double ati_short_term_debt;
|
||||
double ati_backoff_time;
|
||||
double ati_backoff_interval;
|
||||
double duration_correction_factor;
|
||||
|
|
|
@ -238,14 +238,16 @@ int PROJECT::parse(MIOFILE& in) {
|
|||
if (parse_double(buf, "<min_rpc_time>", min_rpc_time)) continue;
|
||||
if (parse_double(buf, "<download_backoff>", download_backoff)) continue;
|
||||
if (parse_double(buf, "<upload_backoff>", upload_backoff)) continue;
|
||||
if (parse_double(buf, "<short_term_debt>", short_term_debt)) continue;
|
||||
if (parse_double(buf, "<short_term_debt>", cpu_short_term_debt)) continue;
|
||||
if (parse_double(buf, "<long_term_debt>", cpu_long_term_debt)) continue;
|
||||
if (parse_double(buf, "<cpu_backoff_time>", cpu_backoff_time)) continue;
|
||||
if (parse_double(buf, "<cpu_backoff_interval>", cpu_backoff_interval)) continue;
|
||||
if (parse_double(buf, "<cuda_debt>", cuda_debt)) continue;
|
||||
if (parse_double(buf, "<cuda_short_term_debt>", cuda_short_term_debt)) continue;
|
||||
if (parse_double(buf, "<cuda_backoff_time>", cuda_backoff_time)) continue;
|
||||
if (parse_double(buf, "<cuda_backoff_interval>", cuda_backoff_interval)) continue;
|
||||
if (parse_double(buf, "<ati_debt>", ati_debt)) continue;
|
||||
if (parse_double(buf, "<ati_short_term_debt>", ati_short_term_debt)) continue;
|
||||
if (parse_double(buf, "<ati_backoff_time>", ati_backoff_time)) continue;
|
||||
if (parse_double(buf, "<ati_backoff_interval>", ati_backoff_interval)) continue;
|
||||
if (parse_double(buf, "<duration_correction_factor>", duration_correction_factor)) continue;
|
||||
|
@ -293,7 +295,7 @@ void PROJECT::clear() {
|
|||
min_rpc_time = 0;
|
||||
download_backoff = 0;
|
||||
upload_backoff = 0;
|
||||
short_term_debt = 0;
|
||||
cpu_short_term_debt = 0;
|
||||
cpu_long_term_debt = 0;
|
||||
cpu_backoff_time = 0;
|
||||
cpu_backoff_interval = 0;
|
||||
|
@ -2268,7 +2270,7 @@ int RPC_CLIENT::set_debts(vector<PROJECT> projects) {
|
|||
" <long_term_debt>%f</long_term_debt>\n"
|
||||
" </project>\n",
|
||||
p.master_url.c_str(),
|
||||
p.short_term_debt,
|
||||
p.cpu_short_term_debt,
|
||||
p.cpu_long_term_debt
|
||||
);
|
||||
s += string(buf);
|
||||
|
|
Loading…
Reference in New Issue