Skip to content

checkhealth branch is broken if CUDA is installed on a computer without GPU #405

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

Closed
jeanfeydy opened this issue Jan 16, 2025 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jeanfeydy
Copy link
Contributor

Hi @Nizben, @bcharlier, @joanglaunes,

Before you merge the checkhealth branch into main, please note that it is currently broken if CUDA is installed on a computer that does not, actually, host a GPU. This is typically the case on my laptop, where I use our reference Docker image that ships CUDA.

from pykeops import LazyTensor
[KeOps] Warning : Failed to load library cuda: libcuda.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/keops/pykeops/pykeops/__init__.py", line 2, in <module>
    import keopscore
  File "/opt/keops/keopscore/keopscore/__init__.py", line 14, in <module>
    from keopscore.config import *
  File "/opt/keops/keopscore/keopscore/config/__init__.py", line 10, in <module>
    cuda_config = CUDAConfig()
                  ^^^^^^^^^^^^
  File "/opt/keops/keopscore/keopscore/config/cuda.py", line 42, in __init__
    self.set_use_cuda()
  File "/opt/keops/keopscore/keopscore/config/cuda.py", line 62, in set_use_cuda
    self.get_gpu_props()
  File "/opt/keops/keopscore/keopscore/config/cuda.py", line 330, in get_gpu_props
    libcuda = ctypes.CDLL(find_library("cuda"))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libcuda.so.1: cannot open shared object file: No such file or directory

See you soon,
Jean

@jeanfeydy jeanfeydy added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants