title: Thrust inside user written kernels
body: <p>I am a newbie to Thrust. I see that all Thrust presentations and examples only show host code.</p>
  
  <p>I would like to know if I can pass a device_vector to my own kernel? How?
  If yes, what are the operations permitted on it inside kernel/device code?</p>