view TaskManager/test/GpuRunTest/twice.cl @ 1554:bd97edaed523 draft

nd_range
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 19 Feb 2013 20:26:26 +0900
parents 57317332f6ef
children 096412ad80fb
line wrap: on
line source

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

}