scheduler: add a debug printf for multi-thread issue

This commit is contained in:
David Anderson 2022-11-12 12:23:45 -08:00
parent f564bb5202
commit c73b62adb9
2 changed files with 14 additions and 4 deletions

View File

@ -1027,10 +1027,22 @@ int add_result_to_reply(
double est_cpu_secs = est_dur*bavp->host_usage.avg_ncpus;
g_wreq->req_secs[PROC_TYPE_CPU] -= est_cpu_secs;
g_wreq->req_instances[PROC_TYPE_CPU] -= bavp->host_usage.avg_ncpus;
if (config.debug_send_job) {
log_messages.printf(MSG_NORMAL,
"[send_job] est_dur %f est_cpu_secs %f; new req_secs %f\n",
est_dur, est_cpu_secs, g_wreq->req_secs[PROC_TYPE_CPU]
);
}
} else {
double est_gpu_secs = est_dur*bavp->host_usage.gpu_usage;
g_wreq->req_secs[pt] -= est_gpu_secs;
g_wreq->req_instances[pt] -= bavp->host_usage.gpu_usage;
if (config.debug_send_job) {
log_messages.printf(MSG_NORMAL,
"[send_job] est_dur %f est_gpu_secs %f; new req_secs %f\n",
est_dur, est_gpu_secs, g_wreq->req_secs[pt]
);
}
}
} else {
// extremely old clients don't send per-resource requests

View File

@ -12,12 +12,10 @@
/* Release part of BOINC version number */
#define BOINC_RELEASE 0
// wrapper version number
// when you change this, change .exe file names in VS project files
/* Release part of wrapper version number */
#define WRAPPER_RELEASE 26018
// vboxwrapper version number
// when you change this, change .exe file names in VS project files
/* Release part of vboxwrapper version number */
#define VBOXWRAPPER_RELEASE 26206
/* String representation of BOINC version number */