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; } }