title: Torch Cuda - Generates two processes on both GPU cores
body: <p>When I run;</p>
  
  <pre><code>require 'cutorch'
  </code></pre>
  
  <p>in lua it automatically allocates two processes to two of the cores in my GPU. For example I get the following output in <code>nvidia-smi</code>;</p>
  
  <pre><code>---------------------------------------------------------------------------+
  | Processes:                                                       GPU Memory |
  |  GPU       PID  Type  Process name                               Usage      |
  |=============================================================================|
  |    0                  Not Supported                                         |
  |    1      6091    C   /home/msmith/torch/install/bin/qlua             98MiB |
  |    2      6091    C   /home/msmith/torch/install/bin/qlua             99MiB |
  +-----------------------------------------------------------------------------+
  </code></pre>
  
  <p>I would like to be able to control which GPU the process goes on. I have tried;</p>
  
  <pre><code>cutorch.setDevice(&lt;Device Number&gt;)
  </code></pre>
  
  <p>but this just creates more processes on the GPU.</p>
  
  <p>Thanks.</p>