summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2015-04-16 08:51:06 +0800
committerYang Rong <rong.r.yang@intel.com>2015-04-24 10:31:29 +0800
commit5c6220a21dc64c2165c81ae499cf7236093da1b2 (patch)
tree2df2830827fdf18152caeb69a7b8748cc44aa6bb /kernels
parente2019e40f0fe73acaa057689592accff9553e0be (diff)
add utest for __gen_ocl_get_simd_size
Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/compiler_get_simd_size.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernels/compiler_get_simd_size.cl b/kernels/compiler_get_simd_size.cl
new file mode 100644
index 00000000..6e303a35
--- /dev/null
+++ b/kernels/compiler_get_simd_size.cl
@@ -0,0 +1,5 @@
+__kernel void compiler_get_simd_size(global int *dst)
+{
+ int i = get_global_id(0);
+ dst[i] = __gen_ocl_get_simd_size();
+}