client: Fix bug in setting opencl_device_index

svn path=/trunk/boinc/; revision=25216
This commit is contained in:
Charlie Fenton 2012-02-08 01:02:56 +00:00
parent 3a4e85bff3
commit 1b41c17cb9
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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