view example/multiply/gpu/Multi.cl @ 2048:6796d85f3d6b draft

remove error
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 28 Jan 2016 00:05:49 +0900
parents f19885ea776d
children
line wrap: on
line source

__kernel void
multi(__global const long *params, __global const float* A, __global const float* B, __global float* C)
{
    //    int i=get_global_id(0);
    long id = get_global_id(0);
    //    for(int i=0;i<length;i++) {
    C[id]=A[id]*B[id];
}