Mercurial > hg > Papers > 2015 > kkb-sigos
diff paper/source/Multi.cl @ 2:8e3bf4806e33
edit
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 04 May 2015 17:13:09 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/source/Multi.cl Mon May 04 17:13:09 2015 +0900 @@ -0,0 +1,7 @@ +__kernel void +multi(__global const long *params, __global const float* A, __global const float* B, __global float* C) +{ + // get index + long id = get_global_id(0); + C[id]=A[id]*B[id]; +}