Can't get CUDA to work

username: John_Johnson
cooked: <p>Hi,</p>
<p>I am having an issue with my CUDA installation and PyTorch on Windows 10. PyTorch is not detecting my CUDA installation even though I have installed the NVIDIA driver and PyTorch version that is compatible with my GPU (GTX 1080 Ti). I have added the path to my CUDA libraries to my system’s PATH environment variable, but PyTorch still does not detect my CUDA installation.</p>
<p>Here is the output of the <code>collect_env</code> command:</p>
<p>Collecting environment information…<br>
PyTorch version: 1.13.1<br>
Is debug build: False<br>
CUDA used to build PyTorch: Could not collect<br>
ROCM used to build PyTorch: N/A</p>
<p>OS: Microsoft Windows 10 Pro<br>
GCC version: Could not collect<br>
Clang version: Could not collect<br>
CMake version: Could not collect<br>
Libc version: N/A</p>
<p>Python version: 3.9.13 (main, Aug 25 2022, 23:51:50) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)<br>
Python platform: Windows-10-10.0.19044-SP0<br>
Is CUDA available: False<br>
CUDA runtime version: 11.7.64</p>
<p>CUDA_MODULE_LOADING set to: N/A<br>
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1080 Ti<br>
Nvidia driver version: 528.02<br>
cuDNN version: Could not collect<br>
HIP runtime version: N/A<br>
MIOpen runtime version: N/A<br>
Is XNNPACK available: True</p>
<p>Versions of relevant libraries:<br>
[pip3] mypy-extensions==0.4.3<br>
[pip3] numpy==1.21.5<br>
[pip3] numpydoc==1.4.0<br>
[pip3] torch==1.13.1<br>
[pip3] torchaudio==0.13.1<br>
[pip3] torchvision==0.14.1<br>
[conda] blas                      1.0                         mkl<br>
[conda] cpuonly                   2.0                           0    pytorch<br>
[conda] mkl                       2021.4.0           haa95532_640<br>
[conda] mkl-service               2.4.0            py39h2bbff1b_0<br>
[conda] mkl_fft                   1.3.1            py39h277e83a_0<br>
[conda] mkl_random                1.2.2            py39hf11a4ad_0<br>
[conda] numpy                     1.21.5           py39h7a0a035_3<br>
[conda] numpy-base                1.21.5           py39hca35cd5_3<br>
[conda] numpydoc                  1.4.0            py39haa95532_0<br>
[conda] pytorch                   1.13.1              py3.9_cpu_0    pytorch<br>
[conda] pytorch-cuda              11.7                 h67b0de4_1    pytorch<br>
[conda] pytorch-mutex             1.0                         cpu    pytorch<br>
[conda] torchaudio                0.13.1                 py39_cpu    pytorch<br>
[conda] torchvision               0.14.1                 py39_cpu    pytorch</p>
<p>I have also checked that my GPU is being recognized by my system by running the <code>nvidia-smi</code> command, which returns the following output:</p>
<p>Fri Jan 6 19:53:51 2023<br>
±----------------------------------------------------------------------------+<br>
| NVIDIA-SMI 528.02       Driver Version: 528.02       CUDA Version: 12.0     |<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  On |                  N/A |<br>
|  0%   37C    P8    12W / 250W |   1376MiB / 11264MiB |      7%      Default |<br>
|                               |                      |                  N/A |<br>
±------------------------------±---------------------±---------------------+</p>
<p>These are my environment variables:<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/4/9/49733d0846861134a89fbb246e0442f121a9025b.png" alt="Skærmbillede 2023-01-06 200400" data-base62-sha1="atLKEzXVzpVBAaAnt0MRqDti4wH" width="545" height="39"></p>
<p>I am at a loss as to what to try next. Can anyone help me troubleshoot this issue?</p>
<p>Thanks in advance for any help!</p>
<p>Best regards,<br>
John</p>

username: ptrblck
cooked: <p>It seems you’ve installed the CPU-only binaries:</p>
<pre><code class="lang-auto">pytorch 1.13.1 py3.9_cpu_0 pytorch
</code></pre>
<p>so make sure to select the binaries with a proper CUDA runtime.</p>