Problem with CUDA Installation

Forelli: <p>Hi</p>
<p>CUDA calculations do not work on my system. I think I’m missing an important point somewhere, but I can’t find the error. Can you guys help me with this?</p>
<p>Here are the steps I take for the installation:</p>
<ul>
<li>
<p>Reset Windows 10 Home (64bit - Build 10.0.18.363) and install the latest Updates =&gt; OK.</p>
</li>
<li>
<p>Is the graphics card CUDA compatible? =&gt; OK (GeForce GTX 570 Compute Capability 2.0).</p>
</li>
<li>
<p>Download and install the latest graphics card driver. Use the custom installation, install only the “Graphics Driver” and use the option “Perform a clean installation)”. =&gt; OK (Version 391.35)</p>
</li>
<li>
<p>Download and install Python 3.7.6 amd64. Activate ALL possible options, which are available during the “Customize installation” =&gt; OK.</p>
</li>
<li>
<p>Update PIP in CMD: “python -m pip install --upgrade pip” =&gt; OK.</p>
</li>
<li>
<p>Open the UAC-SettingS in CMD “C:\WINDOWS\System32\UserAccountControlSettings.exe” and set to “Never notify” =&gt; OK.</p>
</li>
<li>
<p>Install Pytorch in CMD “pip3 install torch===1.3.1 torchvision===0.4.2 -f <a href="https://download.pytorch.org/whl/torch_stable.html" rel="nofollow noopener">https://download.pytorch.org/whl/torch_stable.html</a>”  =&gt; OK.</p>
</li>
<li>
<p>Install Microsoft Visual Studio Community 2019 (16.4.2), Select “Desktop development with C++” at Workloads with default Toolset 14.24 . Start VS once. =&gt; OK.</p>
</li>
<li>
<p>Open in a editor “C:\Program Files\Python37\Lib\site-packages\PIL_<em>init</em>_.py” and add at line 25 this text =&gt; OK.<br>
PILLOW_VERSION = ‘2.6.1’<br>
VERSION = ‘1.1.7’</p>
</li>
<li>
<p>Install Anaconda (Anaconda3-2019.10-Windows-x86_64) in “All Users”. Do not activate the two checkboxes in “Advanced Options” =&gt; OK.</p>
</li>
<li>
<p>Install CUDA (cuda_10.1.105_418.96_win10) with the “Express” installation option =&gt; OK.</p>
</li>
<li>
<p>Copy cuDNN-Files (cudnn-10.1-windows10-x64-v7.6.5.32) to the folders in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 =&gt; OK.</p>
</li>
<li>
<p>Install dependencies according the manual “conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing” =&gt; OK.</p>
</li>
<li>
<p>Install dependencies that are necessary for my project in cmd “pip install matplotlib tqdm opencv-python pandas scikit-image scikit-learn transformers”</p>
</li>
<li>
<p>Add  variables in CMD = OK.<br>
set DISTUTILS_USE_SDK=1<br>
set CMAKE_GENERATOR_TOOLSET_VERSION=14.24<br>
set CMAKE_GENERATOR=Visual Studio 16 2019<br>
for /f “usebackq tokens=*” %i in (<code>"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -latest -property installationPath</code>) do call “%i\VC\Auxiliary\Build\vcvarsall.bat” x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION%<br>
set CUDAHOSTCXX=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe</p>
</li>
<li>
<p>Add environment variables “path” in advanced system settings =&gt; OK.<br>
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin		C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp</p>
</li>
<li>
<p>Reboot and then check, if a CUDA-device is available =&gt; Not OK. “FALSE”<br>
import torch<br>
torch.cuda.is_available()</p>
</li>
</ul>

ptrblck: <p>The binaries with with their own CUDA, cudnn, etc. libraries, and won’t use your local CUDA installation.<br>
Your GPU with compute capability 2.0 is not supported using the binaries, as the only cc&gt;=3.7 is supported with the latest binaries.</p>
<p>Usually you would need to build PyTorch from source for an older GPU, but I’m not sure at the moment, if 2.0 is supported at all or if it’s too old.</p>

Forelli: <p>Thank you for the hint!! With a newer graphics card it worked immediately. Thanks a lot, no idea why I didn’t read that anywhere…</p>