Torch.cuda.is_available() returns false, mismatch

Karan_Tin: <p>Hi,</p>
<p>A very strange problem.</p>
<p>I have NVIDIA RTX 3050 Ti Laptop.</p>
<p>I am trying to setup a repo that requires:<br>
" This repo is tested with PyTorch 1.2, cuda 10.0 and Python 3.6."</p>
<p>The graphics card does not support CUDA 10.0. If I use CUDA 11.6 or similar, PyTorch 1.2 cannot run on that cuda.</p>
<p>Any solution??</p>

nxag: <p>Try this? I had the same problem and it worked for me:</p>
<pre><code class="lang-auto">conda install pytorch torchvision cudatoolkit=11.1 -c pytorch -c conda-forge 
</code></pre>
<p>full fix:</p><aside class="onebox stackexchange" data-onebox-src="https://stackoverflow.com/questions/69204737/torch-cuda-is-available-returns-false-why">
  <header class="source">

      <a href="https://stackoverflow.com/questions/69204737/torch-cuda-is-available-returns-false-why" target="_blank" rel="noopener nofollow ugc">stackoverflow.com</a>
  </header>

  <article class="onebox-body">
      <a href="https://stackoverflow.com/users/16925714/yfrite" target="_blank" rel="noopener nofollow ugc">
    <img alt="YFrite" src="https://lh3.googleusercontent.com/a-/AOh14Ggd2eX2s_UnqLEvkJ0JyE7iZVvAZr7homDVC2MEVQ=k-s256" class="thumbnail onebox-avatar" width="256" height="256">
  </a>

<h4>
  <a href="https://stackoverflow.com/questions/69204737/torch-cuda-is-available-returns-false-why" target="_blank" rel="noopener nofollow ugc">torch.cuda.is_available() returns False why?</a>
</h4>

<div class="tags">
  <strong>pytorch</strong>
</div>

<div class="date">
  asked by
  
  <a href="https://stackoverflow.com/users/16925714/yfrite" target="_blank" rel="noopener nofollow ugc">
    YFrite
  </a>
  on <a href="https://stackoverflow.com/questions/69204737/torch-cuda-is-available-returns-false-why" target="_blank" rel="noopener nofollow ugc">08:15AM - 16 Sep 21 UTC</a>
</div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>PS: Your RTX 3050 is well equipped for pretty much any version of CUDA, see:</p>
<aside class="onebox wikipedia" data-onebox-src="https://en.wikipedia.org/wiki/CUDA">
  <header class="source">

      <a href="https://en.wikipedia.org/wiki/CUDA" target="_blank" rel="noopener nofollow ugc">en.wikipedia.org</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:300/182;"><img src="//upload.wikimedia.org/wikipedia/en/thumb/b/b9/Nvidia_CUDA_Logo.jpg/300px-Nvidia_CUDA_Logo.jpg" class="thumbnail" width="300" height="182"></div>

<h3><a href="https://en.wikipedia.org/wiki/CUDA" target="_blank" rel="noopener nofollow ugc">CUDA</a></h3>

<p>CUDA (or Compute Unified Device Architecture) is a parallel computing platform and application programming interface (API) that allows software to use certain types of graphics processing unit (GPU) for general purpose processing, an approach called general-purpose computing on GPUs (GPGPU). CUDA is a software layer that gives direct access to the GPU's virtual instruction set and parallel computational elements, for the execution of compute kernels.
 CUDA is designed to work with programming lan...</p>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p><a href="https://tech.amikelive.com/node-930/cuda-compatibility-of-nvidia-display-gpu-drivers/#:~:text=This%20will%20fail%20since%20GeForce,560%20Ti%20is%20CUDA%208.0" class="inline-onebox" rel="noopener nofollow ugc">CUDA Compatibility of NVIDIA Display / GPU Drivers | Amikelive | Technology Blog</a>.</p>