dstokac

Extracting pointer to data from the cl::Buffer object

Discussion created by dstokac on Nov 12, 2009
Latest reply on Nov 12, 2009 by Stib

We have a kernel

__kernel kern(__global int* a_arg){},

with argument a_arg initialized by

kern_kernel.setArg(0, a_buf),

where

cl::Buffer a_buf(...).

 

Is it possible to extract value of a_arg from a_buf?

 

Outcomes