title: Read cudaArray in device code
body: <p>Is there a way to read the values in a <code>cudaArray</code> from the device without wrapping it in a texture reference/object? All of the examples I've looked at use <code>cudaArray</code>s exclusively for creating textures. Is that the only way they can be used, or could I do something like:</p>
  
  <pre><code>__global__ kernel(cudaArray *arr, ...) {
      float x = tex1D&lt;float&gt;(arr, ...);
      ...
  }
  
  cudaArray *arr;
  cudaMallocArray(&amp;arr, ...);
  cudaMemcpyToArray(arr, ...);
  kernel&lt;&lt;&lt;...&gt;&gt;&gt;(arr, ...);
  </code></pre>
  
  <p>So basically, what should go in place of <code>tex1D</code> there? Also, if this is possible I'd be curious if anyone thinks there would be any performance benefit to doing this, but I'll also be running my own tests to see.</p>
  
  <p>Thanks!</p>