From 1b41c17cb9b9d811b8aa7a28a1a57e05d2413d2f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 8 Feb 2012 01:02:56 +0000 Subject: [PATCH] client: Fix bug in setting opencl_device_index svn path=/trunk/boinc/; revision=25216 --- checkin_notes | 6 ++++++ client/coproc_detect.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index a5cd1656ec..7d08a7c235 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1455,3 +1455,9 @@ David 7 Feb 2012 client_state.cpp client_types.cpp,h cs_apps.cpp + +Charlie 7 Feb 2012 + - client: Fix bug in setting opencl_device_index. + + client/ + coproc_detect.cpp diff --git a/client/coproc_detect.cpp b/client/coproc_detect.cpp index 93dbb31da6..f3f119a91d 100644 --- a/client/coproc_detect.cpp +++ b/client/coproc_detect.cpp @@ -374,7 +374,7 @@ strcpy(prop.opencl_driver_version, "CLH 1.0"); (strstr(prop.vendor, "Advanced Micro Devices, Inc.")) ) { prop.device_num = (int)(ati_opencls.size()); - prop.opencl_device_index = prop.device_num; + prop.opencl_device_index = device_index; #ifdef __APPLE__ // Work around a bug in OpenCL which returns only