const floats in kernel not initialized

Discussion created by XmainframeX on Jan 13, 2011
Latest reply on Jan 18, 2011 by bubu

Hello everybody,

I just discovered that one of my kernels which ran fine with SDK 2.2 doesn't have its global const floats initialized with SDK 2.3:

I'm debugging the CPU version of my kernel and the debugger shows me that the value of my global "const float centerFactor = 0.75f * 0.75f;" variable declared inside the .cl-File evaluates to 0.0f. The results of the kernels calculations support this observation.

When i'm running the same kernel with SDK 2.2 the debugger shows that centerFactor evaluates to 0.5625 correctly and the calculations of the kernel are correct.


Has anybody observerd similar behaviour or can reproduce this?