Mercurial > hg > Game > Cerium
view TaskManager/test/GpuRunTest/twice.cl @ 1553:21ddbc06dcde draft
fix GpuScheduler
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 17 Feb 2013 19:42:36 +0900 |
parents | 57317332f6ef |
children | bd97edaed523 |
line wrap: on
line source
__kernel void twice(__global int *data_count, __global int *input_data, __constant int *n, __global int *output_data) { long count = (long)data_count[0]; for (int i = 0; i<count; i++) { output_data[i] = input_data[i] * n[0]; } }