[Beignet] [PATCH] API: Fix local memory type to CL_LOCAL

Xiuli Pan xiuli.pan at intel.com
Mon Jan 23 03:49:07 UTC 2017


From: Pan Xiuli <xiuli.pan at intel.com>

We are using SLM as local memory and we should return CL_LOCAL for
CL_DEVICE_LOCAL_MEM_TYPE.

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 src/cl_gen75_device.h | 2 +-
 src/cl_gen7_device.h  | 2 +-
 src/cl_gen8_device.h  | 2 +-
 src/cl_gen9_device.h  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cl_gen75_device.h b/src/cl_gen75_device.h
index 7ef2b82..a07583f 100644
--- a/src/cl_gen75_device.h
+++ b/src/cl_gen75_device.h
@@ -21,7 +21,7 @@
 .max_parameter_size = 1024,
 .global_mem_cache_line_size = 64, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
-.local_mem_type = CL_GLOBAL,
+.local_mem_type = CL_LOCAL,
 .local_mem_size = 64 << 10,
 .scratch_mem_size = 2 << 20,
 .max_mem_alloc_size = 2 * 1024 * 1024 * 1024ul,
diff --git a/src/cl_gen7_device.h b/src/cl_gen7_device.h
index e755cad..01aa0f3 100644
--- a/src/cl_gen7_device.h
+++ b/src/cl_gen7_device.h
@@ -21,7 +21,7 @@
 .max_parameter_size = 1024,
 .global_mem_cache_line_size = 64, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
-.local_mem_type = CL_GLOBAL,
+.local_mem_type = CL_LOCAL,
 .local_mem_size = 64 << 10,
 .scratch_mem_size = 12 << 10,
 .max_mem_alloc_size = 2 * 1024 * 1024 * 1024ul,
diff --git a/src/cl_gen8_device.h b/src/cl_gen8_device.h
index 08fde48..e596825 100644
--- a/src/cl_gen8_device.h
+++ b/src/cl_gen8_device.h
@@ -21,7 +21,7 @@
 .max_parameter_size = 1024,
 .global_mem_cache_line_size = 64, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
-.local_mem_type = CL_GLOBAL,
+.local_mem_type = CL_LOCAL,
 .local_mem_size = 64 << 10,
 .scratch_mem_size = 2 << 20,
 .max_mem_alloc_size = 2 * 1024 * 1024 * 1024ul,
diff --git a/src/cl_gen9_device.h b/src/cl_gen9_device.h
index f50f9c7..be30a49 100644
--- a/src/cl_gen9_device.h
+++ b/src/cl_gen9_device.h
@@ -21,7 +21,7 @@
 .max_parameter_size = 1024,
 .global_mem_cache_line_size = 64, /* XXX */
 .global_mem_cache_size = 8 << 10, /* XXX */
-.local_mem_type = CL_GLOBAL,
+.local_mem_type = CL_LOCAL,
 .local_mem_size = 64 << 10,
 .scratch_mem_size = 2 << 20,
 .max_mem_alloc_size = 4 * 1024 * 1024 * 1024ul,
-- 
2.7.4



More information about the Beignet mailing list