title: CUDA - copy a struct with an array to the gpu and back
body: <p>I have the nodes of an octree stored in an array and pos_childs point to the array position where the childnode is. How do I get a struct like this to the gpu, access it and get it back from the gpu properly? I can't use unified memory due to hardware restrictions. </p>
  
  <pre><code>typedef struct Octree
  {
      //data
      unsigned pos_childs[8];
  }octree_t;
  </code></pre>