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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -