diff options
author | Homer Hsing <homer.xing@intel.com> | 2013-08-26 10:20:33 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-08-30 16:06:50 +0800 |
commit | c59d493684982cb8a0e1995f28bbe56d9cff93c6 (patch) | |
tree | c0fb42fcb58754d85ae621583f0227f7c0edf3d4 /kernels | |
parent | 4e476f3eb2111eee8f2ac9304b045dda9962bf0c (diff) |
add built-in function "tgamma"
also include a test case
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'kernels')
-rw-r--r-- | kernels/builtin_tgamma.cl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernels/builtin_tgamma.cl b/kernels/builtin_tgamma.cl new file mode 100644 index 00000000..1f7abc30 --- /dev/null +++ b/kernels/builtin_tgamma.cl @@ -0,0 +1,4 @@ +kernel void builtin_tgamma(global float *src, global float *dst) { + int i = get_global_id(0); + dst[i] = tgamma(src[i]); +}; |