cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

geekmaster
Journeyman III

Brook compiler error

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) { ............... }

0 Likes
3 Replies
ryta1203
Journeyman III

Infinite loop, what is the exit condition?

0 Likes

I don't think there is a break in Brook+

which is the only possiblity for exit condition

0 Likes

1)niravshah00  Brook+ supports break

2)ryta1203 in my program there is an exit condition but it the compiler runs ok if i use while(1){.....} and crushes with for(;;){.....}

When i say brook+ compiler error i mean that when i try to compile the program the compiler crushes and does not return any errors. Then the linker complains because there is no file to link.

Since it is possible to use while(1){.....} this error is not important but it should be fixed.

0 Likes