client: Add logging message for insufficient GPU RAM details to coproc_debug flag

svn path=/trunk/boinc/; revision=25074
This commit is contained in:
Charlie Fenton 2012-01-17 02:42:49 +00:00
parent d4993f3752
commit ee48c85db6
2 changed files with 13 additions and 0 deletions

View File

@ -602,3 +602,10 @@ Charlie 16 Jan 2012
coproc_detect.cpp
lib/
coproc.cpp,.h
Charlie 16 Jan 2012
- client: Add logging message for insufficient GPU RAM details to
coproc_debug flag.
client/
cpu_sched.cpp

View File

@ -1224,6 +1224,12 @@ static inline bool get_integer_assignment(
if (!cp->usage[i]) {
if (rp->avp->gpu_ram > cp->available_ram_temp[i]) {
defer_sched = true;
if (log_flags.coproc_debug) {
msg_printf(rp->project, MSG_INFO,
"[coproc] task %s needs %.0fMB RAM, %s GPU %d has %.0fMB available",
rp->name, rp->avp->gpu_ram, cp->type, i, cp->available_ram_temp[i]
);
}
continue;
};
nfree++;