Mercurial > hg > Members > yuuhi > OpenCL
view twice.cl @ 0:4d6463c84338
Twice example on OpenCL
author | Yuuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 11 Apr 2012 20:59:20 +0900 |
parents | |
children |
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; } }