Runtime: fix the incorrect global mem size.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 30 Aug 2013 05:23:06 +0000 (13:23 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 4 Sep 2013 03:37:44 +0000 (11:37 +0800)
The max_mem_alloc_size is 128M, we should set global mem size
less or equal to it. May be we can set both of them to much
larger than 128M in the future. For now, just set it to 128MB.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_gt_device.h

index 7f67697..c8d3aac 100644 (file)
@@ -50,7 +50,7 @@
 .min_data_type_align_size = sizeof(cl_uint),
 .single_fp_config = 0, /* XXX */
 .global_mem_cache_type = CL_READ_WRITE_CACHE,
-.global_mem_size = 4,
+.global_mem_size = 128 * 1024 * 1024,
 .max_constant_buffer_size = 64 << 10,
 .max_constant_args = 8,
 .error_correction_support = CL_FALSE,