title: cuda-gdb Error message
body: <p>I tried to debug my CUDA application with cuda-gdb but got some weird error.</p>
  
  <p>I set option <code>-g -G -O0</code> to build my application. I could run my program without cuda-gdb, but didn't get correct result. Hence I decided to use cuda-gdb, however, I got following error message while running program with cuda-gdb</p>
  
  <p><code>
  Error: Failed to read the valid warps mask (dev=1, sm=0, error=16).
  </code></p>
  
  <p>What does it means? Why <code>sm=0</code> and what's the meaning of <code>error=16</code>?</p>
  
  <p><strong>Update 1</strong>: I tried to use cuda-gdb to CUDA samples, but it fails with same problem. I just installed CUDA 6.0 Toolkit followed by instruction of NVIDIA. Is it a problem of my system?</p>
  
  <p><strong>Update 2</strong>:</p>
  
  <ul>
  <li>OS - CentOS 6.5</li>
  <li>GPU
  <ul>
  <li>1 Quadro 400</li>
  <li>2 Tesla C2070</li>
  <li>I'm using only 1 GPU for my program, but I've got same bug message from any GPU that I selected</li>
  </ul></li>
  <li>CUDA version - 6.0</li>
  <li>GPU Driver
  <ul>
  <li>NVRM version: NVIDIA UNIX x86_64 Kernel Module  331.62  Wed Mar 19 18:20:03 PDT 2014</li>
  <li>GCC version:  gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)</li>
  </ul></li>
  </ul>
  
  <p><strong>Update 3</strong>:
  I tried to get more information in cuda-gdb, but I got following results</p>
  
  <p><code>
  (cuda-gdb) info cuda devices
  Error: Failed to read the valid warps mask (dev=1, sm=0, error=16).
  (cuda-gdb) info cuda sms
  Focus not set on any active CUDA kernel.
  (cuda-gdb) info cuda lanes
  Focus not set on any active CUDA kernel.
  (cuda-gdb) info cuda kernels
  No CUDA kernels.
  (cuda-gdb) info cuda contexts
  No CUDA contexts.
  </code></p>