The OpenGL 3.2 core profile is not compatible with cl_gl.h

as a workaround to use OpenCL functionality with OpenGL 3.2 core mode, you have to define __gl_h_ before including CL/cl_gl.h
otherwise cl_gl.h tries to include the old gl header file which results in type conflicts:

i think a fix is needed within the cl_gl.h file.

as a workaround, you can use

#if GL3_PROTOTYPES
#define __gl_h_
#endif
#include <CL/cl_gl.h>