From ef811a917ba3307bcae70d7d53a75a6c6d43d2d9 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 21 Feb 2012 00:17:42 +0000 Subject: [PATCH] client: Fix OpenCL NVIDIA GPU enumeration bug I introduced with last checkin svn path=/trunk/boinc/; revision=25301 --- checkin_notes | 7 +++++++ client/coproc_detect.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 0c4ceb0304..1ab1df91e3 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/coproc_detect.cpp b/client/coproc_detect.cpp index e25c9380b9..a3dc9fbc8d 100644 --- a/client/coproc_detect.cpp +++ b/client/coproc_detect.cpp @@ -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")) ||