Mercurial > hg > Game > Cerium
view example/OpenCL/twice.cl @ 1786:ba6ffc679a8f draft
minor fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 Nov 2013 21:06:44 +0900 |
parents | 99ea7b932470 |
children |
line wrap: on
line source
__kernel void twice(__global 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] = input_data[i]*2; } }