I'm following some tutorials on OpenCL and they mention a type called cl::KernelFunctor
. However, that type isn't found and when I looked at the headers of the AMD APP SDK, I saw that the declaration of the cl::KernelFunctor
class is commented out.
What am I supposed to use in place of this code to run a kernel?
//run the kernel
cl::KernelFunctor simple_add(cl::Kernel(program, "simple_add"), queue, cl::NullRange, cl::NDRange(10), cl::NullRange);
simple_add(buffer_A, buffer_B, buffer_C);
cl::compatibility
. – Bogie