client: Clarify comment about max RAM size reported by OpenCL CPU detection

This commit is contained in:
Charlie Fenton 2013-08-26 17:14:54 -07:00
parent d5fdf4b391
commit cb46429336
1 changed files with 1 additions and 3 deletions

View File

@ -166,9 +166,7 @@ void COPROCS::correlate_gpus(
intel_gpu.correlate(use_all, ignore_gpu_instance[PROC_TYPE_AMD_GPU]); intel_gpu.correlate(use_all, ignore_gpu_instance[PROC_TYPE_AMD_GPU]);
correlate_opencl(use_all, ignore_gpu_instance); correlate_opencl(use_all, ignore_gpu_instance);
// NOTE: OpenCL has only 64 bits for global_mem_size, // NOTE: OpenCL can report a max of only 4GB.
// so it can report a max of only 4GB.
// Get the CPU RAM size from gstate.hostinfo.m_nbytes.
for (i=0; i<cpu_opencls.size(); i++) { for (i=0; i<cpu_opencls.size(); i++) {
gstate.host_info.cpu_opencl_prop[gstate.host_info.num_cpu_opencl_platforms++] = cpu_opencls[i]; gstate.host_info.cpu_opencl_prop[gstate.host_info.num_cpu_opencl_platforms++] = cpu_opencls[i];
} }