Will installing pytorch on linux solve my problem?

username: pombinhosdead
cooked: <p>Hi all,</p>
<p>I tried installing pytorch to run with my GPU on python <strong>3.10</strong> to run a specific application — on my windows setup — without success, since my NVIDIA drivers (ge force 740m — driver version 426.00) are only able to run CUDA up to <strong>10.1</strong>, and the lowest pytorch version compatible to python 3.10 version is <strong>1.11</strong> which requires <strong>CUDA 10.2</strong>.</p>
<p>First of all, I don’t understand why can’t I run CUDA 10.2 since my GPU capability is 3.0, the same as the required for this version CUDA. I always get the message “your nvidia drivers are too old” (my drivers are all updated) and so I can only run with CUDA 10.1, which is only supported on Windows until pytorch 1.7 (not compatible with python 3.10).</p>
<p>I see that <a href="https://download.pytorch.org/whl/cu101/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu101/torch_stable.html</a> has cuda 10.1 binaries for pytorch 1.11 <strong>compatible with python 3.10</strong> —  in fact, up until pytorch 2.0.1 — , but only for <strong>manylinux</strong>. (I don’t understand why not for windows)</p>
<p><strong>In a nutshell, my problem is that i want to run pytorch with GPU on python 3.10 using my current NVIDIA driver</strong> (seems to me that CUDA 10.1 is the max I can use). If I get linux and install pytorch, should it solve my issue? Do I have any other alternative?</p>
<p>Another question, is it possible to install pytorch 1.7 on python 3.10 building it from source? I guess if possible this would also solve my problem.</p>
<p>Since I never used linux before I’d rather have a solution to run it on windows. But I’m getting a new ssd and I can try some dual boot stuff if I need to.</p>
<p>Thanks very much.</p>

username: pombinhosdead
cooked: <p>By the way, I forgot to mention but I found this folder <a href="https://pypi.org/project/torch/1.11.0/#files" rel="noopener nofollow ugc">https://pypi.org/project/torch/1.11.0/#files</a> with pytorch 1.11 wheels that run on windows with python 3.10.</p>
<p>Somehow I just can’t get them to work with my GPU either. Maybe because these wheels were build with CUDA 10.2 which again my NVIDIA driver can’t seem to be able to use.</p>

username: ptrblck
cooked: <p>The PyTorch binaries are not build for compute capability 3.0 anymore and I don’t know which exact release dropped it. The current binaries support 3.7-9.0 using the CUDA 11.8 runtime and 5.0-9.0 using the CUDA 12.1 runtime.</p>

username: pombinhosdead
cooked: <p>Thanks for letting me know. Do you have more info about the other questions I asked?</p>

username: GuWei007
cooked: <aside class="onebox githubblob" data-onebox-src="https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix">
  <header class="source">

      <a href="https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix" target="_blank" rel="noopener nofollow ugc">github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix" target="_blank" rel="noopener nofollow ugc">pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix</a></h4>


      <pre><code class="lang-md"># Releasing PyTorch

&lt;!-- toc --&gt;

  - [Release Compatibility Matrix](#release-compatibility-matrix)
  - [Release Cadence](#release-cadence)
  - [General Overview](#general-overview)
    - [Frequently Asked Questions](#frequently-asked-questions)
  - [Cutting a release branch preparations](#cutting-a-release-branch-preparations)
  - [Cutting release branches](#cutting-release-branches)
    - [`pytorch/pytorch`](#pytorchpytorch)
    - [`pytorch/builder` / PyTorch domain libraries](#pytorchbuilder--pytorch-domain-libraries)
    - [Making release branch specific changes for PyTorch](#making-release-branch-specific-changes-for-pytorch)
    - [Making release branch specific changes for domain libraries](#making-release-branch-specific-changes-for-domain-libraries)
  - [Drafting RCs (Release Candidates) for PyTorch and domain libraries](#drafting-rcs-release-candidates-for-pytorch-and-domain-libraries)
    - [Release Candidate Storage](#release-candidate-storage)
    - [Release Candidate health validation](#release-candidate-health-validation)
    - [Cherry Picking Fixes](#cherry-picking-fixes)
    - [Cherry Picking Reverts](#cherry-picking-reverts)
  - [Promoting RCs to Stable](#promoting-rcs-to-stable)
</code></pre>



  This file has been truncated. <a href="https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix" target="_blank" rel="noopener nofollow ugc">show original</a>

  </article>

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

  <div style="clear: both"></div>
</aside>
<p>
pls refer to compatibility-matrix</p>

username: GuWei007
cooked: <aside class="quote no-group" data-username="pombinhosdead" data-post="1" data-topic="193495">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/pombinhosdead/48/66174_2.png" class="avatar"> pombinhosdead:</div>
<blockquote>
<p>Another question, is it possible to install pytorch 1.7 on python 3.10 building it from source? I guess if possible this would also solve my problem.</p>
</blockquote>
</aside>
<p>Trust me， don’t do like this, it’s a waste of time</p>

username: pombinhosdead
cooked: <p>Thanks, but this matrix doesn’t show the pytorch versions I am working with.</p>
<p>What I am currently doing is installing pytorch 1.11 (compatible with python 3.10 and CUDA 10.2) by building it from the source files. It doesn’t support my version of CUDA (10.1) but I am trying to make it read the cuda files. There are some minor differences that break the installation.</p>
<p>It seems like some of it is related to <a href="https://github.com/pytorch/pytorch/issues/60854" rel="noopener nofollow ugc">cuSparse descriptors</a> not being read correctly. Can anybody give me a clue for what I can do to fix or work around it? What was pytorch doing to manage these descriptors in version 1.7.1 that it stopped doing in 1.8.0 (when it stopped supporting my cuda)?</p>
<p>Should I add any library / script to pytorch or the compiler (e.g. conda install) to make these cusparce readable or should I just deactivate this feature?</p>
<pre><code class="lang-auto">C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(45): error C4430: missing type - int assumed. Note: C++ doesnt support default-int
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(45): error C2086: 'int at::cuda::sparse::cusparseIndexType_t': redefini´┐¢
C:\Users\claud\pytorch\aten\src\ATen/cuda/CUDASparseDescriptors.h(97): note: consulte a declara´┐¢ de 'at::cuda::sparse::cusparseIndexType_t'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(45): error C2146: erro de sintaxe: ';' missing before 'getCuSparseIndexType'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(45): error C2143: erro de sintaxe: ';' missing before '{'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(45): error C2447: '{': faltando cabealho de fun´┐¢ (old formal style list?)
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(79): error C2065: 'CUSPARSE_ORDER_COL': not declared
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(87): error C2065: 'cusparseDnMatDescr_t': not declared
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(87): error C2146: erro de sintaxe: ';' missing before 'raw_descriptor'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(87): error C2065: 'raw_descriptor': not declared
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(88): error C2065: 'raw_descriptor': not declared
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(88): error C3861: 'cusparseCreateDnMat': not found
</code></pre>
<details>
<summary>
the list goes on</summary>
<pre><code class="lang-auto">C:\...\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(100): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\...\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(100): error C3861: 'cusparseDnMatSetStridedBatch': identificador n´┐¢ encontrado
C:\...\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(104): error C2065: 'descriptor_': identificador n´┐¢ declarado
C:\...\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(104): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\...\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(118): error C2065: 'cusparseDnVecDescr_t': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(118): error C2146: erro de sintaxe: ';' ausente antes do identificador 'raw_descriptor'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(118): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(119): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(119): error C3861: 'cusparseCreateDnVec': identificador n´┐¢ encontrado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(121): error C2065: 'descriptor_': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(121): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(142): error C2146: erro de sintaxe: ';' ausente antes do identificador 'index_type'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(142): error C2065: 'index_type': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(143): error C3861: 'getCuSparseIndexType': identificador n´┐¢ encontrado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(147): error C2065: 'cusparseSpMatDescr_t': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(147): error C2146: erro de sintaxe: ';' ausente antes do identificador 'raw_descriptor'
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(147): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(148): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(148): error C2065: 'index_type': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(148): error C3861: 'cusparseCreateCsr': identificador n´┐¢ encontrado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(189): error C2065: 'descriptor_': identificador n´┐¢ declarado
C:\Users\claud\pytorch\aten\src\ATen\cuda\CUDASparseDescriptors.cpp(189): error C2065: 'raw_descriptor': identificador n´┐¢ declarado
</code></pre>
</details>