Mercurial > hg > Game > Cerium
view example/OpenCL/twice.cl @ 1455:2b886dcc0e7d draft
add OpenCL example
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 May 2012 18:40:10 +0900 |
parents | |
children | a9da5c6bea91 |
line wrap: on
line source
__kernel void twice(__global int *input_data, __global int *output_data, __global int *data_count) { int count = *data_count; for (int i = 0; i<count; i++) { output_data[i] = input_data[i] * 2; } }