When i typed this kernel and compiled the program the brook copmiler crushed.
This line caused the crush
for
(iteration = zero;; iteration += one)
kernel void mykernel(...................) { float4 iteration; const float4 zero = float4(0.0f, 0.0f, 0.0f, 0.0f); const float4 one = float4(1.0f, 1.0f, 1.0f, 1.0f); for(iteration = zero;; iteration += one) { ............... }