OpenCL compiler is stuck

Discussion created by jwbos on Mar 15, 2010
Latest reply on May 18, 2010 by omkaranathan

Currently I am working on a project porting some pieces of existing code to OpenCL. I found some strange behaviour and am wondering if anyone else encountered this before.

When compiling (on the fly) and building my GPU program using clBuildProgram the compiler is stuck in some infinite loop and never returns. When using the clc compiler directly there is no problem.

The problem seems to be with a while loop in my (large) code. When I simply remove the while loop everything compiles instantly without troubles. The code is quite large, I don't know if this can cause any (additional) problems (binary size restrictions?).

Any help appriciated! I can attach the code if needed.