diff options
author | Homer Hsing <homer.xing@intel.com> | 2013-06-26 13:11:54 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-06-26 15:13:37 +0800 |
commit | 41005e0bb07065db0f8c09044f6396fa8f681e07 (patch) | |
tree | 08dd8b841a572700a2534f5d9f69bb0336d05ed6 /kernels/compiler_clz_int.cl | |
parent | 68d21e7fb41649b554ce50d58878c211ab18513c (diff) |
test case for function "clz"
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Junyan He <junyan.he@linux.intel.com>
Diffstat (limited to 'kernels/compiler_clz_int.cl')
-rw-r--r-- | kernels/compiler_clz_int.cl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernels/compiler_clz_int.cl b/kernels/compiler_clz_int.cl new file mode 100644 index 0000000..0f17f86 --- /dev/null +++ b/kernels/compiler_clz_int.cl @@ -0,0 +1,5 @@ +kernel void compiler_clz_int(global int *src, global int *dst) { + int i = get_global_id(0); + dst[i] = clz(src[i]); +} + |