mirror of https://github.com/BOINC/boinc.git
- 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
This commit is contained in:
parent
f24e361034
commit
d8fc87fd17
|
@ -8676,3 +8676,11 @@ David 24 Nov 2011
|
||||||
|
|
||||||
clientsrc/
|
clientsrc/
|
||||||
ss_app.cpp
|
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
|
||||||
|
|
|
@ -339,10 +339,10 @@ void COPROCS::get_opencl(
|
||||||
// 1/2 of total global RAM size: use the value from CAL.
|
// 1/2 of total global RAM size: use the value from CAL.
|
||||||
// This bug applies only to ATI GPUs, not to NVIDIA
|
// 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 {
|
} else {
|
||||||
ati.find_best_opencls(use_all, ati_opencls, ignore_ati_dev);
|
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;
|
ati.attribs.engineClock = ati.opencl_prop.max_clock_frequency;
|
||||||
} // End if (! ati.have_cal)
|
} // End if (! ati.have_cal)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue