title: passing C++ objects to CUDA kernel
body: <p>I have a piece of code which consists of objects which I do not have the permission to modify. On the other hands I have to write CUDA kernel for doing some computations. At the moment I am converting the required information into an array or struct and passing it. Is it possible to pass objects as such to CUDA kernel and is there any way for CUDA kernel to access  private members of the class. Some people have also suggested thrust to me.</p>