Mercurial > hg > Game > Cerium
view TaskManager/test/GpuRunTest/twice.cl @ 1515:b3644b73d2cf draft
add flip flag test
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 23 Oct 2012 14:41:27 +0900 |
parents | 8b0911f58b70 |
children | 890cb39418ca |
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; } }