client: Fix OpenCL NVIDIA GPU enumeration bug I introduced with last checkin

svn path=/trunk/boinc/; revision=25301
This commit is contained in:
Charlie Fenton 2012-02-21 00:17:42 +00:00
parent 015a70e757
commit ef811a917b
2 changed files with 8 additions and 1 deletions

View File

@ -1947,3 +1947,10 @@ David 20 Feb 2012
client_types.h
cs_statefile.cpp
cpu_sched.cpp
Charlie 20 Feb 2012
- client: Fix OpenCL NVIDIA GPU enumeration bug I introduced
with last checkin.
client/
coproc_detect.cpp

View File

@ -405,9 +405,9 @@ strcpy(prop.opencl_driver_version, "CLH 1.0");
prop.opencl_available_ram = nvidia_gpus[prop.device_num].available_ram;
} else {
prop.opencl_available_ram = prop.global_mem_size;
++current_CUDA_index;
}
nvidia_opencls.push_back(prop);
++current_CUDA_index;
}
if ((strstr(prop.vendor, GPU_TYPE_ATI)) ||
(strstr(prop.vendor, "AMD")) ||