view example/flip/twice.cl @ 1960:273de551f726 draft

use multiple command_queue
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 11 Feb 2014 16:28:22 +0900
parents 61164c687b29
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;
    }
}