Last PyTorch to support CUDA10.1?

davidw82: <p>Hi all,<br>
What is the last PyTorch version to support CUDA10.1 when compiling from source?</p>
<p>The way I understand it is that the latest few versions of PyTorch do require CUDA10.2, even when compiling from source. I’m building a software plugin that needs to work with the host software which is compiled against CUDA10.1 and cuDNN 8.0.5. So to play together nicely I need to match these CUDA/cuDNN versions, but do at the same time want to use a PyTorch version as modern as possible.</p>
<p>Cheers,<br>
David</p>

ptrblck: <p>The CUDA version was bumped to 10.2 as a requirement in PyTorch <code>1.10.0</code> if I’m not mistaken.<br>
You could thus use pre-1.10.0 or check if the build process would still work with 10.1.</p>

davidw82: <p>Thanks <a class="mention" href="/u/ptrblck">@ptrblck</a> !<br>
I’ve tried building PyTorch 1.11 under Linux using CUDA10.1 and it did actually work (to my happy surprise). But it doesn’t work under Windows unfortunately. I’m getting some compile error for “CUDASparseDescriptors.h” there. I guess there is nothing to do in that situation, right? Other than using a pre-1.10.0 as you suggest?</p>
<p>Cheers,<br>
David</p>

davidw82: <p>I found the commit that changed the requirements:</p><aside class="onebox githubcommit" data-onebox-src="https://github.com/pytorch/pytorch/commit/9af6fe991c81294acc3e86b60afaaf5ae116477d">
  <header class="source">

      <a href="https://github.com/pytorch/pytorch/commit/9af6fe991c81294acc3e86b60afaaf5ae116477d" target="_blank" rel="noopener nofollow ugc">github.com/pytorch/pytorch</a>
  </header>

  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Commit">
    <svg width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"><path d="M10.86 7c-.45-1.72-2-3-3.86-3-1.86 0-3.41 1.28-3.86 3H0v2h3.14c.45 1.72 2 3 3.86 3 1.86 0 3.41-1.28 3.86-3H14V7h-3.14zM7 10.2c-1.22 0-2.2-.98-2.2-2.2 0-1.22.98-2.2 2.2-2.2 1.22 0 2.2.98 2.2 2.2 0 1.22-.98 2.2-2.2 2.2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/pytorch/pytorch/commit/9af6fe991c81294acc3e86b60afaaf5ae116477d" target="_blank" rel="noopener nofollow ugc">Remove CUDA 9.2 and older references from our cmake (#65065)</a>
    </h4>

    <div class="github-info">
      <div class="date">
        committed <span class="discourse-local-date" data-format="ll" data-date="2021-09-16" data-time="19:54:49" data-timezone="UTC">07:54PM - 16 Sep 21 UTC</span>
      </div>

      <div class="user">
        <a href="https://github.com/janeyx99" target="_blank" rel="noopener nofollow ugc">
          <img alt="janeyx99" src="https://avatars.githubusercontent.com/u/31798555?v=4" class="onebox-avatar-inline" width="20" height="20">
          janeyx99
        </a>
      </div>

      <div class="lines" title="changed 1 files with 11 additions and 87 deletions">
        <a href="https://github.com/pytorch/pytorch/commit/9af6fe991c81294acc3e86b60afaaf5ae116477d" target="_blank" rel="noopener nofollow ugc">
          <span class="added">+11</span>
          <span class="removed">-87</span>
        </a>
      </div>
    </div>
  </div>
</div>

  <div class="github-row">
    <p class="github-body-container">Summary:
Removes old CUDA references in our cuda.cmake

Pull Request resolved: h<span class="show-more-container"><a href="https://github.com/pytorch/pytorch/commit/9af6fe991c81294acc3e86b60afaaf5ae116477d" target="_blank" rel="noopener nofollow ugc" class="show-more">…</a></span><span class="excerpt hidden">ttps://github.com/pytorch/pytorch/pull/65065

Reviewed By: malfet

Differential Revision: D30992673

Pulled By: janeyx99

fbshipit-source-id: 85b524089ed57e5acbc71720267cf05e24a8c20a</span></p>
  </div>

  </article>

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

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

<p>Does that mean that up to that commit should work with CUDA10.1?</p>

ptrblck: <p>Yes, I guess so as this is the first commit I can find removing this CUDA requirement.</p>

davidw82: <p>Thanks for the responses <a class="mention" href="/u/ptrblck">@ptrblck</a> <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>