title: How can I determine the number of CUDA devices on my system (without compiling anything)?
body: <p>I want to determine the number of CUDA devices on my system. Of course I can do this using the CUDA runtime API in a C program I compile, but - what's the simplest/most straightforward way to do this <em>without</em> compiling any code?</p>
  
  <p>Assumptions:</p>
  
  <ul>
  <li>CUDA >= 7.0 is installed</li>
  <li>up-to-date nVIDIA drivers are installed</li>
  <li>You may provide different solutions for UNIX-like and non-UNIX-like OSes.</li>
  </ul>