AnsweredAssumed Answered

unexpected jump from if statement

Question asked by agat50 on Mar 28, 2013
Latest reply on Mar 28, 2013 by agat50

Hello Everyone. I'm trying to generate gray code with some useful features on GPU. During debugging kernel in CodeXL found some unexplainable jumps in code, after check "if" statement it is jump to the "middle of nowhere".  In my case, it jumps from 240 line (!tempB is true) in kernel to line 259, of course  newState is not initialized etc. Exactly the same code on cpu c++ runs just fine, entering into {}. win7 x64, hd6850, 12.10 catalyst, 2.8 app sdk, msvs2010, last codexl. The same error on 13.1 catalyst. The same with -cl-opt-disable.


P.S. For runnning in main.cpp change platformList[1] <- for your number,

"E:\\OpenclKernels\\" for your path to kernel.