mirror of https://github.com/BOINC/boinc.git
- client: Remove scaling factor for AMD OpenCL devices. Latest
generation of drivers now report the correct memory size. They didn't wait for the next OpenCL spec change. client/ coproc_detect.cpp svn path=/trunk/boinc/; revision=24989
This commit is contained in:
parent
580f3bfd49
commit
21aed83249
|
@ -117,3 +117,11 @@ David 3 Jan 2012
|
|||
|
||||
client/
|
||||
cs_prefs.cpp
|
||||
|
||||
Rom 3 Jan 2012
|
||||
- client: Remove scaling factor for AMD OpenCL devices. Latest
|
||||
generation of drivers now report the correct memory size.
|
||||
They didn't wait for the next OpenCL spec change.
|
||||
|
||||
client/
|
||||
coproc_detect.cpp
|
|
@ -293,15 +293,6 @@ void COPROCS::get_opencl(
|
|||
(strstr(prop.vendor, "Advanced Micro Devices, Inc."))
|
||||
) {
|
||||
prop.device_num = (int)(ati_opencls.size());
|
||||
// Work around a bug in OpenCL which returns only
|
||||
// 1/2 of total global RAM size.
|
||||
// This bug applies only to ATI GPUs, not to NVIDIA
|
||||
// Assume this will be fixed in openCL 1.2.
|
||||
if ((!strstr("1.0", prop.opencl_platform_version))
|
||||
|| (!strstr("1.1", prop.opencl_platform_version))
|
||||
){
|
||||
prop.global_mem_size *= 2;
|
||||
}
|
||||
if (!ati.have_cal) {
|
||||
COPROC_ATI c;
|
||||
c.opencl_prop = prop;
|
||||
|
|
Loading…
Reference in New Issue