c++ - What should I use instead of cl::KernelFunctor? -
i'm following tutorials on opencl , mention type called cl::kernelfunctor
. however, type isn't found , when looked @ headers of amd app sdk, saw declaration of cl::kernelfunctor
class commented out.
what supposed use in place of code run kernel?
//run 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::kernel simple_add(program, "simple_add"); simple_add.setarg(0, buffer_a); simple_add.setarg(1, buffer_b); simple_add.setarg(2, buffer_c); commandqueue.enqueuendrangekernel(simple_add, ...);
Comments
Post a Comment