title: How to choose device when running a CUDA executable?
body: <p>I'm connecting to a GPU cluster from the outside and I have no idea how to select the device on which to run my CUDA programs.</p>
  
  <p>I know there are two Tesla GPU in the cluster, and I'd like to choose one of them.</p>
  
  <p>Any ideas how? How do you choose the device you want to use when there are many connected to your computer? </p>