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

Installation issues on Debian 12 #1231

Open
veseshan opened this issue Jan 14, 2025 · 0 comments
Open

Installation issues on Debian 12 #1231

veseshan opened this issue Jan 14, 2025 · 0 comments

Comments

@veseshan
Copy link

I tried installing torch on a server running Debian 12.9. The server has a L4 GPU

(torch251) veseshan:~$ python3 -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_properties(0))"
True
_CudaDeviceProperties(name='NVIDIA L4', major=8, minor=9, total_memory=22491MB, multi_processor_count=58, uuid=*, L2_cache_size=48MB)
(torch251) veseshan:~$ 

When trying installing with GPU support I got this error

R:> library(torch)
ℹ Additional software needs to be downloaded and installed for torch to work correctly.
Do you want to continue? (Yes/no/cancel) yes
trying URL 'https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu118.zip'
Content type 'application/zip' length 2630673164 bytes (2508.8 MB)
==================================================
downloaded 2508.8 MB

trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/main/latest/lantern-0.13.0.9001+cu118+x86_64-Linux.zip'
Content type 'application/zip' length 5723267 bytes (5.5 MB)
==================================================
downloaded 5.5 MB

Warning message:
ℹ torch failed to start, restart your R session to try again.
ℹ You might need to reinstall torch using `install_torch()`
✖ /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so -
  /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/libc10_cuda.so: undefined symbol: _ZNK3c105Error4whatEv
Caused by error in `cpp_lantern_init()`:
! /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so - /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/libc10_cuda.so: undefined symbol: _ZNK3c105Error4whatEv 
R:> q()

When installing on a server without GPU (i.e. CPU only I get this

> library(torch)
ℹ Additional software needs to be downloaded and installed for torch to work correctly.
Do you want to continue? (Yes/no/cancel) yes
trying URL 'https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcpu.zip'
Content type 'application/zip' length 181781260 bytes (173.4 MB)
==================================================
downloaded 173.4 MB

trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.13.0/latest/lantern-0.13.0+cpu+x86_64-Linux.zip'
Content type 'application/zip' length 5657334 bytes (5.4 MB)
==================================================
downloaded 5.4 MB

Warning message:
ℹ torch failed to start, restart your R session to try again.
ℹ You might need to reinstall torch using `install_torch()`
✖ /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so -
  /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so: undefined symbol:
  _ZN2at4_ops25reflection_pad1d_backward4callERKNS_6TensorES4_N3c108ArrayRefINS5_6SymIntEEE
Caused by error in `cpp_lantern_init()`:
! /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so - /home/xxx/R/x86_64-pc-linux-gnu-library/4.4/torch/lib/liblantern.so: undefined symbol: _ZN2at4_ops25reflection_pad1d_backward4callERKNS_6TensorES4_N3c108ArrayRefINS5_6SymIntEEE 
> q()

The offending library appears to be lantern in both instances. Is there a working version for Debian 12?

Thanks,
Venkat

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

1 participant