title: How to use Shared Virtual Memory in Boost::Compute and custom kernel?
body: <p>I have written a simple kernel that performs recursion over trees like:</p>
  
  <pre><code>struct item {
      int data;
      item *rnext, *lnext;
  } *items[NUM_ITEMS];
  </code></pre>
  
  <p>So i'd like to pass such array of tree items which point to themselves to the opencl kernel, and SVM seems the best way to do so (I have no problem counting on opencl 2.0). </p>
  
  <p>My question is how to do it with boost::compute such that the kernel will receive triples of integers or something like that.</p>
  
  <p>Thanks!</p>