summaryrefslogtreecommitdiff
path: root/opencl/loop.cl
blob: e35eadbc1da3e88b50c39195a3fc31b4dce8eb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Must be same as MAGIC_LOOP_STOP in lib/intel_compute.c */
#define MAGIC_LOOP_STOP 0x12341234

__kernel void loop(volatile __global int *input,
		   __global int *output,
		   unsigned int count)
{
	while (1) {
		if (input[0] == MAGIC_LOOP_STOP)
			break;
	}
}