Thanks for the testcase. I will look into it, and let you know.
Not a duplicate. Using a renderbuffer the OpenCL kernel is ignored entirely. Using a texture the kernel is run, but only the first write to the texture affects it (when run on CPU).
Can you please go through CL_GL Interop sample from APP SDK. I do not see the usage of GLContext, as present in SimpleGL.cpp. I am myself not very familiar with OpenGL, but as I understand a GL context should also be created.
static HWND gHwnd;
BOOL quit = FALSE;
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
typedef GLXContext (*GLXCREATECONTEXTATTRIBSARBPROC)(Display*, GLXFBConfig, GLXContext, Bool, const int*);
glutInit() handles cross-platform OpenGL context creation.
Sorry for the late reply.
using glut for CL-GL interop is not recommended as there does not seem to be a way to get hold of the GL context from glut API. Can you try to use raw windowing capabilities, and create a testcase. You can refer to SimpleGL sample for testcase creation.