client: bug fixes

svn path=/trunk/boinc/; revision=21571
This commit is contained in:
David Anderson 2010-05-18 21:11:35 +00:00
parent 9a54d6e144
commit 49f3c1aa61
3 changed files with 12 additions and 12 deletions

View File

@ -427,9 +427,9 @@ void COPROC_CUDA::get(
// fake a NVIDIA GPU (for debugging)
//
void COPROC_CUDA::fake(double ram, int count) {
void COPROC_CUDA::fake(double ram, int n) {
strcpy(type, "CUDA");
count = count;
count = n;
for (int i=0; i<count; i++) {
device_nums[i] = i;
}
@ -823,11 +823,11 @@ void COPROC_ATI::get(
retval = (*__calShutdown)();
}
void COPROC_ATI::fake(double ram, int count) {
void COPROC_ATI::fake(double ram, int n) {
strcpy(type, "ATI");
strcpy(version, "1.4.3");
strcpy(name, "foobar");
count = count;
count = n;
memset(&attribs, 0, sizeof(attribs));
memset(&info, 0, sizeof(info));
attribs.localRAM = (int)(ram/MEGA);

View File

@ -126,10 +126,10 @@ struct PROC_RESOURCES {
COPROC* cp2;
if (av.ncudas) {
x = av.ncudas;
cp2 = &gstate.host_info.coprocs.cuda;
cp2 = &coprocs.cuda;
} else if (av.natis) {
x = av.natis;
cp2 = &gstate.host_info.coprocs.ati;
cp2 = &coprocs.ati;
} else {
return true;
}
@ -158,10 +158,10 @@ struct PROC_RESOURCES {
COPROC* cp2;
if (av.ncudas) {
x = av.ncudas;
cp2 = &gstate.host_info.coprocs.cuda;
cp2 = &coprocs.cuda;
} else if (av.natis) {
x = av.natis;
cp2 = &gstate.host_info.coprocs.ati;
cp2 = &coprocs.ati;
} else {
return;
}

View File

@ -302,11 +302,11 @@ struct COPROCS {
// to avoid messing w/ master copy
//
void clone(COPROCS& c, bool copy_used) {
c.cuda = cuda;
c.ati = ati;
cuda = c.cuda;
ati = c.ati;
if (!copy_used) {
c.cuda.used = 0;
c.ati.used = 0;
cuda.used = 0;
ati.used = 0;
}
}
inline void clear() {