Compatibility with NVIDIA MX450 graphic card windows

czkat: <p>I’m using pytorch version 1.12.1 with CUDA10.2 in windows 10 pro. Is this version of pytorch compatible with NVIDIA MX450 hardware and its driver 528.33? Thank you.</p>

ptrblck: <p>Yes, the mentioned PyTorch release should be compatible with Turing GPUs.</p>

czkat: <p>thanks for ur prompt reply. i understand that the pytorch version is compatible. just to clarify, does this line</p>
<pre><code class="lang-auto">conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
</code></pre>
<p>install both cpu and gpu-enabled torch?<br>
im trying to solve this assertion error: torch not compiled with CUDA enabled. so im checking with the community if torch have version compatibility issue with cuda here. thank you!</p>

ptrblck: <p>The install log should show if the CUDA-enabled PyTorch binary or a CPU-only wheel was installed. If you are seeing a <code>cpu</code> tag in the binary name then the CPU-only binary was selected.</p>

czkat: <p>hi thanks for the reply. i didnt find the install log for conda, but i came across this under  C:\Users\CZ\anaconda3\Lib\site-packages\torch\version.txt</p>
<pre><code class="lang-auto">__version__ = '1.12.1'
debug = False
cuda = None
git_version = '664058fa83f1d8eede5d66418abff6e20bd76ca8'
hip = None
</code></pre>
<p>is it advisable to install with pip wheels instead of conda? thank you.</p>

ptrblck: <p>Yes, if <code>conda</code> doesn’t find the specified version you might want to try the pip wheels and double check if the <code>cu102</code> tag is shown in the binary name.</p>

czkat: <p>Hi, I have uninstalled anaconda, upgraded cuda to 11.7, and pip installed</p>
<pre><code class="lang-auto">pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
</code></pre>
<p>in the binary files these exist:</p>
<pre><code class="lang-auto">torch-1.13.1+cu117-cp310-cp310-win_amd64.whl
torchvision-0.14.1+cu117-cp310-cp310-win_amd64.whl
</code></pre>
<p>the backend program has successfully run through the part where it used to give assertion error.<br>
however,now it gives a runtime error where torch tries to call a cuda_init function that doesn’t exist.</p>
<pre><code class="lang-auto">&gt;&gt;&gt; import torch
&gt;&gt;&gt; x = torch.rand(2,3,device = 'cuda')
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "C:\Users\CZ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\cuda\__init__.py", line 229, in _lazy_init
    torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available
</code></pre>
<p>any advice? should i install another version and try again…<br>
thank you</p>

ptrblck: <p>This error point towards a driver issue so make sure your NVIDIA driver is properly installed and can communicate with the GPU.</p>

czkat: <p>i have tried these config with my GeForce MX450:</p>
<ol>
<li>torch 1.13.1+cu117; cuda 11.7; nvidia driver 517.48</li>
<li>torch 1.13.1+cu117; cuda 11.7; nvidia driver 516.01</li>
</ol>
<p>both throws me the same runtime error: No CUDA GPUs are available.<br>
It should have worked. as far as i know cuda 11.7 is the latest cuda stable version with pytorch, and driver 517.48 &amp; 516.01 are compatible with hardware MX450 and cuda 11.7. any advice?</p>

ptrblck: <p>Unfortunately, I don’t know what might be causing this issue as I’m not a Windows expert.<br>
On my Windows test system I’m using an older <code>MX150</code> which works properly with <code>torch==1.13.1+cu117</code> and the current nightly release.</p>

czkat: <p>it’s ok. do you advise installing linux to use torch?</p>

ptrblck: <p>Generally yes as I’m only using Linux for years while I only use Windows for a few smoke tests for the latest binary releases to verify the wheels are still working.<br>
Note however, that other users might have a great experience in using Windows and might have a bad experience with Linux systems.</p>