Uing cuda with pytorch

username: p4x
cooked: <p>I’ve a new machine with a low-gpu and I want to use pytorch with CUDA in practicing deep learning but it gives me <em><strong>false</strong></em> when i run torch.cuda.is_available() even after installing with this cmd :conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch". Need help in using the CUDA.</p>
<p>Have already installed cuda with “conda install cuda”</p>
<p>nvidia-smi:<br>
±----------------------------------------------------------------------------+<br>
| NVIDIA-SMI 512.59       Driver Version: 512.59       CUDA Version: 11.6     |<br>
|-------------------------------±---------------------±---------------------+<br>
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |<br>
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |<br>
|                               |                      |               MIG M. |<br>
|===============================+======================+======================|<br>
|   0  NVIDIA GeForce … WDDM  | 00000000:01:00.0 Off |                  N/A |<br>
| N/A   41C    P0    N/A /  N/A |      0MiB /  2048MiB |      3%      Default |<br>
|                               |                      |                  N/A |<br>
±------------------------------±---------------------±---------------------+</p>
<p>±----------------------------------------------------------------------------+<br>
| Processes:                                                                  |<br>
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |<br>
|        ID   ID                                                   Usage      |<br>
|=============================================================================|<br>
|  No running processes found                                                 |<br>
±----------------------------------------------------------------------------+</p>

username: ptrblck
cooked: <p>Which GPU are you using and what does <code>torch.version.cuda</code> return?</p>

username: p4x
cooked: <p>nvidia geforce MX250<br>
returns ‘none’ in python env</p>

username: p4x
cooked: <p><code>nvcc -V:</code></p>
<p>nvcc: NVIDIA (R) Cuda compiler driver<br>
Copyright (c) 2005-2021 NVIDIA Corporation<br>
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021<br>
Cuda compilation tools, release 11.3, V11.3.58<br>
Build cuda_11.3.r11.3/compiler.29745058_0</p>

username: p4x
cooked: <p>Still waiting to hear from you <a class="mention" href="/u/ptrblck">@ptrblck</a></p>

username: ptrblck
cooked: <aside class="quote no-group" data-username="p4x" data-post="3" data-topic="151264">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/p4x/48/49451_2.png" class="avatar"> p4x:</div>
<blockquote>
<p>returns ‘none’ in python env</p>
</blockquote>
</aside>
<p>This would mean that you’ve installed a CPU-only binary or built from source without a properly installed CUDA toolkit. Uninstall the current PyTorch installation or create a new virtual environment and reinstall PyTorch with the desired CUDA runtime.</p>