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

OSError while running the sample code. #60

Open
VASHISHT-RAHUL opened this issue Jul 6, 2023 · 6 comments
Open

OSError while running the sample code. #60

VASHISHT-RAHUL opened this issue Jul 6, 2023 · 6 comments

Comments

@VASHISHT-RAHUL
Copy link

Running the following command with GPU :

kernel = falkon.kernels.GaussianKernel(sigma=1, opt=options)
flk = falkon.Falkon(kernel=kernel, penalty=1e-5, M=5000, options=options)

gives OSError : /opt/conda/lib/python3.10/site-packages/falkon/c_ext/_C.so: undefined symbol: _ZNK5torch8autograd4Node4nameEv.
Please provide the solution at the earliest.

@Giodiro
Copy link
Contributor

Giodiro commented Jul 7, 2023 via email

@elishaparhi
Copy link

Hi,
I also got the same error and it got resolved now. But now it is showing the below error:

OSError: libtorch_cuda_linalg.so: cannot open shared object file: No such file or directory

Please help me resolve this.

Thanks!

@Giodiro
Copy link
Contributor

Giodiro commented Jul 7, 2023 via email

@elishaparhi
Copy link

Thanks..this solved the problem.

I ran the below commands:

import os
os.environ['LD_LIBRARY_PATH'] ='/opt/conda/lib/python3.10/site-packages/torch/lib:$LD_LIBRARY_PATH'
os.environ['LD_LIBRARY_PATH'] +=':/usr/lib64-nvidia'
os.environ['LD_LIBRARY_PATH'] +=':/usr/local/cuda-11.8/compat'

Now, there is another error:
File "/usr/local/lib/python3.10/dist-packages/falkon/utils/devices.py", line 92, in _get_gpu_device_info
mem_free, mem_total = mem_get_info(g)
File "/usr/local/lib/python3.10/dist-packages/falkon/c_ext/init.py", line 17, in call_cuda
return getattr(torch.ops.falkon, name)(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_ops.py", line 569, in getattr
raise AttributeError(
AttributeError: '_OpNamespace' 'falkon' object has no attribute 'mem_get_info'

@elishaparhi
Copy link

Now, getting the below error:

File "/usr/local/lib/python3.10/dist-packages/falkon/utils/devices.py", line 92, in _get_gpu_device_info
mem_free, mem_total = mem_get_info(g)
File "/usr/local/lib/python3.10/dist-packages/falkon/c_ext/init.py", line 17, in call_cuda
return getattr(torch.ops.falkon, name)(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_ops.py", line 569, in getattr
raise AttributeError(
AttributeError: '_OpNamespace' 'falkon' object has no attribute 'mem_get_info'

Please help me resolve this.

@Giodiro
Copy link
Contributor

Giodiro commented Sep 21, 2023

Hi @elishaparhi

Really sorry if this comes too late, but installation should be a lot easier now.. let me know if you try again and have further problems!

Giacomo

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

3 participants