[Beignet] [PATCH] fix max_parameter_size not correct on x86 platforms.

xionghu.luo at intel.com xionghu.luo at intel.com
Mon Dec 22 19:34:16 PST 2014


From: Luo Xionghu <xionghu.luo at intel.com>

this value should depend on the pointer size according to the system.

Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
 src/cl_gen75_device.h |    2 +-
 src/cl_gen7_device.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cl_gen75_device.h b/src/cl_gen75_device.h
index d6743a4..768721d 100644
--- a/src/cl_gen75_device.h
+++ b/src/cl_gen75_device.h
@@ -19,7 +19,7 @@
 
 /* Common fields for both SNB devices (either GT1 or GT2)
  */
-.max_parameter_size = 1024, 
+.max_parameter_size = sizeof(cl_mem) * 128,
 .global_mem_cache_line_size = 128, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
 .local_mem_type = CL_GLOBAL,
diff --git a/src/cl_gen7_device.h b/src/cl_gen7_device.h
index 470531a..5197817 100644
--- a/src/cl_gen7_device.h
+++ b/src/cl_gen7_device.h
@@ -18,7 +18,7 @@
  */
 
 /* Common fields for both IVB devices (either GT1 or GT2) */
-.max_parameter_size = 1024, 
+.max_parameter_size = sizeof(cl_mem) * 128,
 .global_mem_cache_line_size = 128, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
 .local_mem_type = CL_GLOBAL,
-- 
1.7.9.5



More information about the Beignet mailing list