Commit 3709c1e9 authored by David Anderson's avatar David Anderson

- scheduler: include driver version in the CUDA description string

    storing in the database;
- web: display the above

svn path=/trunk/boinc/; revision=17341
parent 345214bc
......@@ -1963,3 +1963,16 @@ Charlie 22 Feb 2009
clientscr/
screensaver.cpp
David 22 Feb 2009
- scheduler: include driver version in the CUDA description string
storing in the database;
- web: display the above
client/
cpu_sched.cpp
work_fetch.h
html/inc/
host.inc
lib/
coproc.cpp
......@@ -315,10 +315,14 @@ void CLIENT_STATE::reset_debt_accounting() {
for (i=0; i<projects.size(); i++) {
PROJECT* p = projects[i];
p->cpu_pwf.reset_debt_accounting();
p->cuda_pwf.reset_debt_accounting();
if (coproc_cuda) {
p->cuda_pwf.reset_debt_accounting();
}
}
cpu_work_fetch.reset_debt_accounting();
cuda_work_fetch.reset_debt_accounting();
if (coproc_cuda) {
cuda_work_fetch.reset_debt_accounting();
}
debt_interval_start = now;
}
......@@ -364,7 +368,9 @@ void CLIENT_STATE::adjust_debts() {
// adjust long term debts
cpu_work_fetch.update_debts();
cuda_work_fetch.update_debts();
if (coproc_cuda) {
cuda_work_fetch.update_debts();
}
// adjust short term debts
rrs = runnable_resource_share();
......
......@@ -110,7 +110,7 @@ struct RSC_WORK_FETCH {
// debt accounting
double secs_this_debt_interval;
inline void reset_debt_accounting() {
secs_this_debt_interval = 0;
this->secs_this_debt_interval = 0;
}
void rr_init();
......
......@@ -242,6 +242,11 @@ function gpu_desc($x) {
if ($y[0] == "CUDA") $z .= "NVIDIA ";
$z .= $y[1];
$z .= " (".$y[3].")";
if (array_key_exists(4, $y)) {
if ($y[4] != "" && $y[4] != 0) {
$z .= " driver: ".$y[4];
}
}
return $z;
}
......
......@@ -83,7 +83,9 @@ void COPROCS::summary_string(char* buf, int len) {
if (!strcmp(cp->type, "CUDA")) {
COPROC_CUDA* cp2 = (COPROC_CUDA*) cp;
int mem = (int)(cp2->prop.dtotalGlobalMem/MEGA);
sprintf(buf2, "[CUDA|%s|%d|%dMB]", cp2->prop.name, cp2->count, mem);
sprintf(buf2, "[CUDA|%s|%d|%dMB|%d]",
cp2->prop.name, cp2->count, mem, cp2->drvVersion
);
strcat(bigbuf, buf2);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment