title: Choose 2nd GPU on server
body: <p>I am running code on server. There are 2 GPUs there, and the 1st one is busy. Yet, I can't find a way to switch between them. I am using pytorch if that is important. Following lines of code should be modified:</p>
  <pre><code>device = 'cuda' if torch.cuda.is_available() else 'cpu'
  </code></pre>
  <p>Modification may be stated only here.
  Thanks.</p>