mirror of https://github.com/BOINC/boinc.git
- client: include device number in message describing NVIDIA GPU,
and call it "NVIDIA GPU" rather than "CUDA device" fixes #879 svn path=/trunk/boinc/; revision=18277
This commit is contained in:
parent
6e527a0891
commit
310c72c01f
|
@ -4973,3 +4973,11 @@ Charlie 3 June 2009
|
|||
clientgui/
|
||||
AccountInfoPage.cpp, .h
|
||||
BOINCWizards.h
|
||||
|
||||
David 3 June 2009
|
||||
- client: include device number in message describing NVIDIA GPU,
|
||||
and call it "NVIDIA GPU" rather than "CUDA device"
|
||||
fixes #879
|
||||
|
||||
lib/
|
||||
coproc.cpp
|
||||
|
|
|
@ -267,7 +267,7 @@ void COPROC_CUDA::get(
|
|||
}
|
||||
|
||||
if (!gpus.size()) {
|
||||
strings.push_back("No CUDA devices found");
|
||||
strings.push_back("No CUDA-capable NVIDIA GPUs found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -287,15 +287,16 @@ void COPROC_CUDA::get(
|
|||
//
|
||||
best.count = 0;
|
||||
for (i=0; i<gpus.size(); i++) {
|
||||
char buf[256];
|
||||
char buf[256], buf2[256];
|
||||
cc.description(buf);
|
||||
if (use_all || !cuda_compare(gpus[i], best, true)) {
|
||||
best.device_nums[best.count] = gpus[i].device_num;
|
||||
best.count++;
|
||||
strings.push_back("CUDA device: "+string(buf));
|
||||
sprintf(buf2, "NVIDIA GPU %d: %s", buf);
|
||||
} else {
|
||||
strings.push_back("CUDA device (not used): "+string(buf));
|
||||
sprintf(buf2, "NVIDIA GPU %d (not used): %s", buf);
|
||||
}
|
||||
strings.push_back(string(buf2));
|
||||
}
|
||||
|
||||
COPROC_CUDA* ccp = new COPROC_CUDA;
|
||||
|
|
Loading…
Reference in New Issue