Comments (5)
Hi @k-bingcai ,
I was not able to reproduce the issue. It might be an uncompatibility between the cuda version and torch.
Can you post your sessionInfo()
? As well as your cuda version?
from torch.
Hi @dfalbel,
Thanks for getting back! Here's my sessionInfo()
:
R version 4.3.1 (2023-06-16)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux 8.8 (Ootpa)
Matrix products: default
BLAS/LAPACK: /nas/longleaf/home/bingcai/anaconda3/envs/multidfm/lib/libopenblasp-r0.3.21.so; LAPACK version 3.9.0
locale:
[1] LC_CTYPE=en_US.utf-8 LC_NUMERIC=C
[3] LC_TIME=en_US.utf-8 LC_COLLATE=en_US.utf-8
[5] LC_MONETARY=en_US.utf-8 LC_MESSAGES=en_US.utf-8
[7] LC_PAPER=en_US.utf-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf-8 LC_IDENTIFICATION=C
time zone: America/New_York
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] torch_0.12.0
loaded via a namespace (and not attached):
[1] processx_3.8.2 bit_4.0.5 compiler_4.3.1 magrittr_2.0.3 cli_3.6.1
[6] Rcpp_1.0.11 bit64_4.0.5 coro_1.0.3 callr_3.7.3 ps_1.7.5
[11] rlang_1.1.2
The CUDA version is 12.2
(from nvidia-smi
). If it helps, I had to manually create several broken symlinks during installation to get torch to use the GPU. The symlinks are:
ln -s libcudart-e409450e.so.11.0 libcudart.so.11.0
ln -s libcublas-f6acd947.so.11 libcublas.so.11
ln -s libnvToolsExt-847d78f2.so.1 libnvToolsExt.so.1
Hope that clarifies!
from torch.
I'm pretty sure the problem is caused by a ABI compatibility issue between CUDA11 (used by torch) and CUDA12 that you have installed on that environment. I suggest you to install torch using the pre-built binaries, that include a compatible CUDA and CuDNN versions.
You can do so by running somehting like:
options(timeout = 600) # increasing timeout is recommended since we will be downloading a 2GB file.
# For Windows and Linux: "cpu", "cu117" are the only currently supported
# For MacOS the supported are: "cpu-intel" or "cpu-m1"
kind <- "cu118"
version <- available.packages()["torch","Version"]
options(repos = c(
torch = sprintf("https://storage.googleapis.com/torch-lantern-builds/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")
from torch.
Hello,
Thanks for the quick response! I'll try the proposed solution.
I have a rather naive question though: will the pre-built binaries work even though CUDA 12.2 is installed on the system? The documentation seems to suggest so (i.e. If you have CUDA installed, it doesn’t need to match the installation ‘kind’ chosen below.
).
I am asking because the GPU is on a university-wide cluster and I cannot change the CUDA driver version...
from torch.
With the pre-built binaries the globally installed cuda version doesn't matter, as the correct version is shipped within the package. That's actually a similar approach to what pytorch does.
from torch.
Related Issues (20)
- upload the torch to the aws lambda layer HOT 1
- Moderate dimensionality (more than 128) leads to fatal error for nn_linear and nnf_linear HOT 3
- [liblantern CPU compilation ubuntu 22 ] leads to liblantern.so: undefined symbol: HOT 2
- Cannot save any torch tensor or `nn_module` HOT 4
- Release torch 0.12.0
- dataset subset introducing NAs by coercion HOT 1
- cloning nn_module changes type of object
- torch_device errors in latest builds HOT 4
- Cloning of torch module behaves unexpectedly HOT 3
- `nnf_prelu()` fails on MPS device with `Error Placeholder storage has not been allocated on MPS device!` HOT 1
- Question about NEWS HOT 1
- nnf_multi_head_attention_forward (indices) HOT 1
- Calling `$detach()` discards attributes HOT 2
- plans to support cuda 12.3? HOT 2
- torch_arange() inconsistent with PyTorch
- Question on `R6::R6Class()` HOT 2
- nn_cross_entropy_loss (ignore_index = 0)
- torch_triangular_solve function deprecation warning HOT 1
- [Feature Request] Add Intel Arc Extension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torch.