GPU is not utilized

KanZa: <p>I am implementing the following project: <a href="https://github.com/sinhasam/vaal" rel="nofollow noopener">https://github.com/sinhasam/vaal</a><br>
and it is not using the system’s GPU. Kindly check main.py</p>
<ul>
<li>PyTorch Version : 1.1.0</li>
<li>OS: Ubuntu</li>
<li>How you installed PyTorch: pip</li>
<li>Python version: 3</li>
<li>CUDA/cuDNN version:</li>
<li>GPU models and configuration:<br>
nvcc: NVIDIA ® Cuda compiler driver<br>
Copyright © 2005-2016 NVIDIA Corporation<br>
Built on Tue_Jan_10_13:22:03_CST_2017<br>
Cuda compilation tools, release 8.0, V8.0.61</li>
</ul>

ptrblck: <p>How did you install PyTorch?<br>
Did you use the binaries with the <code>cudatoolkit</code>?<br>
If so, could you post the output of <code>print(torch.cuda.is_available())</code>?</p>

KanZa: <p>I am running the same program on server as well as on my system.</p>
<p>At my system Pytorch is installed by pip. I dont know about server’s installation. But at both systems</p>
<p>torch.cuda.is_available()<br>
True<br>
Device Count at server is 4 and at my system it is 1<br>
torch.cuda.device_count()<br>
4</p>
<p>No, I didn’t use cudatoolkit<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/f/8/f833934c12a12cc0c6116a9acfd6cd8c159c370e.png" data-download-href="https://discuss.pytorch.org/uploads/default/f833934c12a12cc0c6116a9acfd6cd8c159c370e" title="Screenshot from 2020-02-17 13-32-17"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/f/8/f833934c12a12cc0c6116a9acfd6cd8c159c370e_2_690x424.png" alt="Screenshot from 2020-02-17 13-32-17" data-base62-sha1="zpGUzjpYwbt9mjswlcWG44Xa8gK" width="690" height="424" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/f/8/f833934c12a12cc0c6116a9acfd6cd8c159c370e_2_690x424.png, https://discuss.pytorch.org/uploads/default/original/3X/f/8/f833934c12a12cc0c6116a9acfd6cd8c159c370e.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/f/8/f833934c12a12cc0c6116a9acfd6cd8c159c370e.png 2x" data-dominant-color="3A152D"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot from 2020-02-17 13-32-17</span><span class="informations">956×588 81.2 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <p>Thanks for the update.<br>
Does the device memory increase during the execution of the script and how does “GPU-Util” print?</p>

KanZa: <p>No, it is not increasing thats way I am sure that program is not utilizing gpus.</p>

ptrblck: <p>I assume you’ve passed the <code>--cuda</code> argument when running <code>main.py</code>?</p>

KanZa: <p>No I didnt because there was no such instruction for running the main.py</p>
<p>I am implementing this project from github  <a href="https://github.com/sinhasam/vaal" rel="nofollow noopener">https://github.com/sinhasam/vaal</a></p>

ptrblck: <p>This seems to be necessary as seen in <a href="https://github.com/sinhasam/vaal/blob/0f91d8ff438ebbdf61a22d4036c444d5599c2240/solver.py#L60-L63">these lines of code</a>.</p>

KanZa: <p>OK I will try again.<br>
Thank you!</p>