Then I compared cl.hpp I use with provided on khronos site for OpenCL 1.1/1.0 - they are the same.
So I decided that cl.h from CUDA 5.5 SDK is "wrong" one.
But it has no differencies with cl.h for OpenCL 1.1 from Kronos site (!). So, cl.h and cl.hpp, both taken for OpenCL 1.1 are incompatible with each other?
Anyone tried this?

aschmied

02-06-2014, 12:05 PM

I guess you've probably found a workaround by now, but I'll reply in case someone else finds this thread.

__cdecl and __sdtcall refer to the function calling convention used by the compiler. The convention used by callbacks in OpenCL is defined in the header cl_platform.h: