title: Getting Torch to recognize GPU
body: <p>How do you get Torch to recognize CUDA on your video card?</p>
  
  <p>I have a Nvidia GeForce GT 1030 running under Ubuntu 18.04, and it claims to <a href="https://videocardz.com/69486/nvidia-geforce-gt-1030-features-384-cuda-cores" rel="nofollow noreferrer">support CUDA</a>, yet when I first tested Torch with it by running:</p>
  
  <pre><code>virtualenv -p python3.7 .env
  . .env/bin/activate
  pip install torch
  python -c "import torch; print(torch.cuda.is_available())"
  </code></pre>
  
  <p>it returned False, along with the warning:</p>
  
  <pre><code>    The NVIDIA driver on your system is too old (found version 9010).
  Please update your GPU driver by downloading and installing a new
  version from the URL: http://www.nvidia.com/Download/index.aspx
  Alternatively, go to: https://pytorch.org to install
  a PyTorch version that has been compiled with your version
  of the CUDA driver.
  </code></pre>
  
  <p>So I ran all system updates and used Ubuntu's proprietary driver installer to install the most recent Nvidia-435 driver for my card.</p>
  
  <p>However, <code>torch.cuda.is_available()</code> still returns false, but now it doesn't give me any warning.</p>
  
  <p>Have I mis-configured Torch or does my GPU just not support CUDA?</p>