summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-01-24 16:47:55 +0800
committerYang Rong <rong.r.yang@intel.com>2017-02-10 14:21:40 +0800
commitaec158a24fc6a86a5e3f6c39c90803ae5a68b4f9 (patch)
tree8e25188951012d705b038a1977a5606f1db88ce7 /src
parent603af8255d56e157dd8f0f6f9cc6f793a31362f5 (diff)
API: Fix local memory type to CL_LOCAL
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@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_gen75_device.h2
-rw-r--r--src/cl_gen7_device.h2
-rw-r--r--src/cl_gen8_device.h2
-rw-r--r--src/cl_gen9_device.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/cl_gen75_device.h b/src/cl_gen75_device.h
index 7ef2b828..a07583fc 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 e755cad6..01aa0f35 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 08fde48d..e5968255 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 f50f9c78..be30a496 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,