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

installing falkon seems to be succesful but failed when calling import falkon #55

Open
hep07 opened this issue Dec 27, 2022 · 3 comments

Comments

@hep07
Copy link

hep07 commented Dec 27, 2022

Hi

My system I can use keops on GPU without problem and I install cuda11.6 already. I have a 3090TI on Ubuntu 22.06.

When I install falkon as instructed using command "pip uninstall git+https://github.com/falkonml/falkon.git", everything is fine without warnings/erros. But when I test it in a notebook using import falkon, I got the following error:


OSError Traceback (most recent call last)
/tmp/ipykernel_1096354/295832182.py in
6 plt.style.use('ggplot')
7
----> 8 import falkon

~/anaconda3/envs/repo/lib/python3.8/site-packages/falkon/init.py in
8 "c_ext", [os.path.dirname(file)])
9 if spec is not None:
---> 10 torch.ops.load_library(spec.origin)
11 else:
12 raise ImportError("Failed to find C-extension. Please recompile Falkon.")

~/anaconda3/envs/repo/lib/python3.8/site-packages/torch/_ops.py in load_library(self, path)
571 # static (global) initialization code in order to register custom
572 # operators with the JIT.
--> 573 ctypes.CDLL(path)
574 self.loaded_libraries.add(path)
575

~/anaconda3/envs/repo/lib/python3.8/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error, winmode)
371
372 if handle is None:
--> 373 self._handle = _dlopen(self._name, mode)
374 else:
375 self._handle = handle

OSError: /home/mc/anaconda3/envs/repo/lib/python3.8/site-packages/falkon/c_ext.so: undefined symbol: _ZN2at4cuda28getCurrentCUDASolverDnHandleEv

It looks like something wrong with cuda?

@CHDev93
Copy link

CHDev93 commented Jan 9, 2023

Am seeing the same error. Was fine with torch==1.10.2+cu113 and pykeops==2.1 though. This issue mentioned that torch==1.12 was known not to be compatible but that the issue appeared to be fixed in the next version of torch. Seems there's a different issue though

@Giodiro
Copy link
Contributor

Giodiro commented Feb 2, 2023

Hi @hep07, sorry again for the late answer.
Have you managed to figure this out?

Giacomo

@CHDev93
Copy link

CHDev93 commented Feb 10, 2023

Not the original author of this post but I was not able to find a workaround aside from just having two different virtual environments. One with a current version of torch and one with the older version against which I can build falkon

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