title: How to execute CUDA kernel on given GPU?
body: <p>I have two NVIDIA cards on my machine. I want to execute a CUDA kernel on one of them (for example, on the second). Alas, in the tutorials I didn't find the device selection for memory allocation and kernel execution, like it is done for OpenCL.</p>
  
  <p>Cannot you tell me, how can I choose the video device to execute kernels and allocate memory on?</p>