Kernel hangs...

Discussion created by eduardoschardong on Nov 9, 2010
Latest reply on Nov 15, 2010 by eduardoschardong

I'm experiencing this strange bug I have a kernel that iterates x elements over each other (just for information, x is a bit more than 3 million) like:


int i = get_global_id(0);

if (i >= Length[0]) return;

int count = Length[0];

for (int j = 0; j < count; j++)

;//the iteration
Well... it hangs... replacing the "count" in "for" for 100 runs ok in about 7 second, replacing by 3200 it doesn't return (waited 24 hours), SKA shows that for up to 200 and a few it fully unroll the loop, for more than 215 or so it creates the loop but never execute the PREDNE_INT.
I didn't allowed it to run for all the 3 million iterations... I'm hoping to get the results from smaller constants first.
Also... There is anyway to interrupt long running kernels? I had to boot the computer...
And a sidebug but I'm not sure it's AMD's, I can't post a topic in IE9.