view example/flip/twice.cl @ 1983:c3b4083c4467 draft

fix CudaScheduler
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Sat, 15 Mar 2014 17:46:13 +0900
parents 273de551f726
children
line wrap: on
line source

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