view TaskManager/test/GpuRegistTaskTest/twice.cl @ 1449:a193b282952b draft

create check routine, and rename GpuThreadsTest to GpuRegistTaskTest
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Apr 2012 14:20:09 +0900
parents TaskManager/test/GpuThreadTest/twice.cl@d66dcb067c89
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;
	}
        
}