title: cuda-memcheck, how to get from address to source code?
body: <p>I successfully used cuda-memcheck to get errors about wrong memory accesses. Compiling the cuda code with <em>-g -G</em> gave nice source locations like this:</p>
  
  <pre><code>========= Error: process didn't terminate successfully
  ========= Invalid __global__ read of size 1
  =========     at 0x00000710 in /some/path/somefile.cu:117:some_function
  =========     by thread (0,14,0) in block (1,16,0)
  =========     Address 0x00abac20 is out of bounds
  </code></pre>
  
  <p>Now I tried to use the <em>-l</em> switch to get also memory leak information. Here, however, I get only addresses:</p>
  
  <pre><code>========= CUDA-MEMCHECK
  ========= Leaked 3630 bytes at 0x007d2800
  =========
  ========= Leaked 14740 bytes at 0x008e0700
  ...
  =========
  ========= LEAK SUMMARY: 11122140 bytes leaked in 39 allocations
  ========= ERROR SUMMARY: 0 errors
  400 bytes at 0x005d2000
  </code></pre>
  
  <p>How can I get the actual code locations from this?</p>