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

Cuda 11.6 deprecated #1165

Open
AGPatriota opened this issue May 17, 2024 · 2 comments
Open

Cuda 11.6 deprecated #1165

AGPatriota opened this issue May 17, 2024 · 2 comments

Comments

@AGPatriota
Copy link

I updated the r-base and torch recently (UBUNTU 18.04). The last version seems not to be compatible with cuda version 11.6

✖ Unsupported CUDA version "11.6"

Do not understand why. I am trying to downgrade to find the last version that accepts cuda version 11.6

@dfalbel
Copy link
Member

dfalbel commented May 17, 2024

LibTorch is very finicky to support older CUDA versions (actually also for newer versions too) so we have a very small range of versions supported.

I recommend installing torch using the pre-buiilt binaries from. Those bundle CUDA and CUDNNN versions required by torch, so you don't need to manage a CUDA installation.

You can install them with somehting like:

kind <- "cu118"
version <- "0.12.0"
options(repos = c(
  torch = sprintf("https://torch-cdn.mlverse.org/packages/%s/%s/", kind, version),
  CRAN = "https://cloud.r-project.org" # or any other from which you want to install the other R dependencies.
))
install.packages("torch", type = "binary")

@AGPatriota
Copy link
Author

AGPatriota commented May 17, 2024

I got it with:

install.packages("https://cran.r-project.org/src/contrib/Archive/torch/torch_0.11.0.tar.gz", repos = NULL, type = "source")

It is installing the additional packages.

require('torch')
Carregando pacotes exigidos: torch
ℹ Additional software needs to be downloaded and installed for torch to work correctly.
Do you want to continue? (Sim/não/cancelar) Sim
tentando a URL 'https://download.pytorch.org/libtorch/cu116/libtorch-cxx11-abi-shared-with-deps-1.13.1%2Bcu116.zip'

I have to change my GPU.

Thanks

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