Cannot install pytorch,cuda correctly for Geforce GTX 880M

xin_du: <p>My laptop uses a Windows system including two Geforce 880M GTX GPUs. I tried to update the Nvidia driver to version 425.31 with CUDA 10.1. And then install the pytorch using conda. The conda.cuda.is_avaliable() shows true, but in training, it shows the image cannot be found (see below). I tried a lot of version for old GPUs, and project123, it still cannot work. Please can someone help me? Thanks very much.</p>
<p>RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at c:\new-builder_3\win-wheel\pytorch\aten\src\thcunn\generic/SpatialDilatedMaxPooling.cu:152</p>

JuanFMontesinos: <p>I think that gpu is too old.<br>
You should try using earlier versions of pytorch or trying to compile yourself although I doubt nvidia support it. Pretty sure you can find supported gpus for different versions.</p>

xin_du: <p>tried a lot of different versions, still not working. Do you know anyway to check it?</p>

AlphaBetaGamma96: <p>As <a class="mention" href="/u/juanfmontesinos">@JuanFMontesinos</a> has already mentioned, your GPU is quite old and you’re most likely going to have to install from source (rather than via conda or pip). The instruction for this are <a href="https://github.com/pytorch/pytorch#from-source" rel="noopener nofollow ugc">here</a>, you’ll also have to install CUDA manually too but that’s all stated in the instructions.</p>
<p>If anyone knows the answer, it’ll be <a class="mention" href="/u/ptrblck">@ptrblck</a> but I fear you’ll need to install from source rather than the quick install via conda or pip.</p>

JuanFMontesinos: <p>You have some docs about cuda version here:</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://docs.nvidia.com/cuda/maxwell-compatibility-guide/index.html">
  <header class="source">

      <a href="https://docs.nvidia.com/cuda/maxwell-compatibility-guide/index.html" target="_blank" rel="noopener nofollow ugc">docs.nvidia.com</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://docs.nvidia.com/cuda/maxwell-compatibility-guide/index.html" target="_blank" rel="noopener nofollow ugc">Maxwell Compatibility Guide :: CUDA Toolkit Documentation</a></h3>

  <p>The guide to building CUDA applications for GPUs based on the NVIDIA Maxwell Architecture.</p>


  </article>

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

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

<p>I do now ias <a class="mention" href="/u/alphabetagamma96">@AlphaBetaGamma96</a> mentioned (if it is possible) it will work via source setup.<br>
But again, it is old enough that I don’t know if you can compile newer pytorch versions with the cuda versions required for that gpu.</p>
<p>Again, if you install earlier versions of pytorch maybe you can.<br>
Earlier means 0.4 or before?</p>
<p>You also have all the cuda version docs here</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://developer.nvidia.com/cuda-toolkit-archive">
  <header class="source">
      <img src="https://developer.nvidia.com/sites/all/themes/cuda/favicon.ico" class="site-icon" width="48" height="48">

      <a href="https://developer.nvidia.com/cuda-toolkit-archive" target="_blank" rel="noopener nofollow ugc" title="01:10PM - 23 November 2021">NVIDIA Developer – 23 Nov 21</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://developer.nvidia.com/cuda-toolkit-archive" target="_blank" rel="noopener nofollow ugc">CUDA Toolkit Archive</a></h3>

  <p>Previous releases of the CUDA Toolkit, GPU Computing SDK, documentation and developer drivers can be found using the links below. Please select the release you want from the list below, and be sure to check www.nvidia.com/drivers for more recent...</p>


  </article>

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

  <div style="clear: both"></div>
</aside>
<p>
It’s a matter of checking your gpu somewhere I’d say.</p>

ptrblck: <p>A source build could work, but since the min. compute capability was set to &gt;=3.5 for a long time, I don’t know if even an older CUDA toolkit would be able to build PyTorch. CUDA 11 dropped sm_30, so this would not work.</p>
<p>The answers by <a class="mention" href="/u/alphabetagamma96">@AlphaBetaGamma96</a> and <a class="mention" href="/u/juanfmontesinos">@JuanFMontesinos</a> are correct: your GPU is too old and the binaries do not support it. You could try a source build with an older CUDA toolkit, but I would not guarantee it’ll work.</p>