From d8fc87fd17b4563744c79db0c8c51b0a57958f39 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 25 Nov 2011 18:59:36 +0000 Subject: [PATCH] - client: fix errors in transferring RAM info between CAL and OpenCL. (bytes vs MB units, local/global terminology issue). From Oliver Bock> svn path=/trunk/boinc/; revision=24650 --- checkin_notes | 8 ++++++++ client/coproc_detect.cpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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)