Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compability with CUDA 5.2 #165

Open
lpawela opened this issue Mar 29, 2024 · 3 comments
Open

Compability with CUDA 5.2 #165

lpawela opened this issue Mar 29, 2024 · 3 comments

Comments

@lpawela
Copy link

lpawela commented Mar 29, 2024

CUDA.jl 5.2 enforces cuTENSOR 2. Consider the following compat section:

CUDA = "5.2"
DocStringExtensions = "0.9.3"
LowRankApprox = "0.5.5"
MKL = "0.4.2"
Memoization = "0.2.1"
SparseArrays = "1.9"
TensorCast = "0.4"
TensorOperations = "4"

This results in the following error (SpinGlassTensors is my package which has this problem)

(SpinGlassTensors) pkg> instantiate
    Updating registry at `~/.julia/registries/QMZJuliaRegistry`
    Updating git-repo `git@github.com:quantumz-io/JuliaRegistry.git`
    Updating registry at `~/.julia/registries/General.toml`
ERROR: Unsatisfiable requirements detected for package cuTENSOR [011b41b2]:
 cuTENSOR [011b41b2] log:
 ├─possible versions are: 1.0.0-2.0.0 or uninstalled
 ├─restricted to versions * by SpinGlassTensors [7584fc6a], leaving only versions: 1.0.0-2.0.0
 │ └─SpinGlassTensors [7584fc6a] log:
 │   ├─possible versions are: 1.0.0 or uninstalled
 │   └─SpinGlassTensors [7584fc6a] is fixed to version 1.0.0
 ├─restricted by compatibility requirements with CUDA [052768ef] to versions: 2.0.0 or uninstalled, leaving only versions: 2.0.0
 │ └─CUDA [052768ef] log:
 │   ├─possible versions are: 0.1.0-5.2.0 or uninstalled
 │   └─restricted to versions 5.2.0-5 by SpinGlassTensors [7584fc6a], leaving only versions: 5.2.0
 │     └─SpinGlassTensors [7584fc6a] log: see above
 └─restricted by compatibility requirements with TensorOperations [6aa20fa7] to versions: 1.0.0-1.2.1 or uninstalled — no versions left
   └─TensorOperations [6aa20fa7] log:
     ├─possible versions are: 0.6.1-4.1.0 or uninstalled
     └─restricted to versions 4 by SpinGlassTensors [7584fc6a], leaving only versions: 4.0.0-4.1.0
       └─SpinGlassTensors [7584fc6a] log: see above
@lkdvos
Copy link
Collaborator

lkdvos commented Mar 29, 2024

Hi @lpawela , I think for now the only way to solve that is to not update CUDA to v5.2 yet. Sadly, cuTENSOR v2 is very breaking in comparison with v1, and while I have put in some effort to update: see #160 , I don't think I am ready to merge that yet, as I have not yet ported over the implementations for StridedViews. If you have some time to look into that further, I'd be very happy to assist, but I have some other projects running at the moment and have little time to immediately fix this.
It is however definitely on my to-do list, so I am definitely planning on fixing this.

@lpawela
Copy link
Author

lpawela commented Mar 29, 2024

@lkdvos just FYI why this might be important JuliaGPU/CUDA.jl#2171

@lkdvos
Copy link
Collaborator

lkdvos commented Mar 29, 2024

Thanks for linking that. I had a quick glance, and it seems like this is the same bug that prompted the initial work on the update, so I'll bump the priority a bit. The annoying thing is that cuTENSOR 2 also requires Julia v1.8, so then we'd have to drop support for Julia 1.6 as I don't see having the time to maintain both versions. I'll keep you posted here if I make some progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants