diff --git a/checkin_notes b/checkin_notes index 6418ed2ea0..68aef0d5d7 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8676,3 +8676,11 @@ David 24 Nov 2011 clientsrc/ ss_app.cpp + +David 25 Nov 2011 + - client: fix errors in transferring RAM info between CAL and OpenCL. + (bytes vs MB units, local/global terminology issue). + From Oliver Bock> + + client/ + coproc_detect.cpp diff --git a/client/coproc_detect.cpp b/client/coproc_detect.cpp index 05aded4b77..45dd7a74f3 100644 --- a/client/coproc_detect.cpp +++ b/client/coproc_detect.cpp @@ -339,10 +339,10 @@ void COPROCS::get_opencl( // 1/2 of total global RAM size: use the value from CAL. // This bug applies only to ATI GPUs, not to NVIDIA // - ati.opencl_prop.global_mem_size = ati.attribs.localRAM; + ati.opencl_prop.global_mem_size = ati.attribs.localRAM * MEGA; } else { ati.find_best_opencls(use_all, ati_opencls, ignore_ati_dev); - ati.attribs.localRAM = ati.opencl_prop.local_mem_size; + ati.attribs.localRAM = ati.opencl_prop.global_mem_size/MEGA; ati.attribs.engineClock = ati.opencl_prop.max_clock_frequency; } // End if (! ati.have_cal)