From 98df3ca0d785a5d08699b4fd9d3644d56271dcbd Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 30 Aug 2013 13:23:06 +0800 Subject: [PATCH] Runtime: fix the incorrect global mem size. 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 --- src/cl_gt_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cl_gt_device.h b/src/cl_gt_device.h index 7f67697..c8d3aac 100644 --- a/src/cl_gt_device.h +++ b/src/cl_gt_device.h @@ -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, -- 2.7.4