view example/flip/twice.cl @ 1544:5c4e3f0d372a draft

many_task add task array
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Thu, 31 Jan 2013 18:47:13 +0900
parents b3644b73d2cf
children 61164c687b29
line wrap: on
line source

__kernel void
twice(__constant int *data_count,
      __global int *input_data,
      __global int *output_data)
{
    long count = (long)data_count[0];
    for (int i = 0; i<count; i++) {
        output_data[i] = 2*input_data[i];
        //input_data[i] *= 2;
    }

}