title: How can I access the numeric stream IDs seen in nvprof, using a cudaStream_t?
body: <p>In nvprof I can see the stream IDs for each cuda execution stream I am using (0, 13, 15, etc.)</p>
  
  <p>Given a stream variable, I'd like to be able to print out the stream ID. Currently I cannot find any API to do this and casting the <code>cudaStream_t</code> to an int or uint does not yield a reasonable ID. <code>sizeof()</code> says <code>cudaStream_t</code> is 8 bytes. </p>