title: Accessing a struct member in CUDA?
body: <p>For simpliflication, say I have this struct:
  <br/>someheader.h</p>
  
  <pre><code>typedef struct
  {
      float x
  }someStruct;
  </code></pre>
  
  <p>in Cuda, how will a device function access the member of the struct if the struct is being shared by a C++ application?</p>
  
  <p>For example:</p>
  
  <pre><code>__global__ void stuff( someStruct *g ) {
      g[0].x = 0.4f;
  }
  </code></pre>
  
  <p>is that the correct way to do it? It doesn't seem to be working.</p>