PDA

View Full Version : Error:E010:Irreducible ControlFlow Detected



jeffheaton
05-09-2010, 05:26 PM
Is there any listing of what the various compile errors mean? Most are pretty self-explanatory, but I have no idea what:

Error:E010:Irreducible ControlFlow Detected

Means, it is not flagging any line in particular. I only get this error from AMD. NVidia seems fine. I am getting this in the Stream KernelAnalyzer.

david.garcia
05-12-2010, 03:31 PM
That means you have some goto jumping into the middle of a loop. OpenCL compilers are not required to support this kind of unstructured code. Even on compiler that support it, it may hurt performance quite a bit.

rubcarso
05-20-2010, 01:39 PM
Hi!!!!
I got same problem when I did:
for(;;)
{
....
if (flagOk) break;
...
}

but with...

for(uint i=0;i<16;i++) // only to mark limits (that will never be used or reached)
{
....
if (flagOk) break;
...
}

NO ERROR!!!