Output is correct in EmuDebug mode but wrong in Debug mode

A kernel can only be called with a pointer to global memory.