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

Found no NVIDIA driver on your system - On Arch Linux #102

Open
mdietrich16 opened this issue Sep 15, 2024 · 0 comments
Open

Found no NVIDIA driver on your system - On Arch Linux #102

mdietrich16 opened this issue Sep 15, 2024 · 0 comments

Comments

@mdietrich16
Copy link

Running the multi-user Nix daemon on Arch Linux but getting this error:

  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/comfyui", line 90, in <module>
    import execution
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/execution.py", line 13, in <module>
    import nodes
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/nodes.py", line 21, in <module>
    import comfy.diffusers_load
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/comfy/diffusers_load.py", line 3, in <module>
    import comfy.sd
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/comfy/sd.py", line 5, in <module>
    from comfy import model_management
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/comfy/model_management.py", line 143, in <module>
    total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
                                  ^^^^^^^^^^^^^^^^^^
  File "/nix/store/9mkwjz77d1cfa1xiwglmpy2wpv58yd7d-comfyui-unstable-2024-09-09/comfy/model_management.py", line 112, in get_torch_device
    return torch.device(torch.cuda.current_device())
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/9s1hb2z6mffnswdar2bz3dl8bmblnq3p-python3-3.11.9-env/lib/python3.11/site-packages/torch/cuda/__init__.py", line 878, in current_device
    _lazy_init()
  File "/nix/store/9s1hb2z6mffnswdar2bz3dl8bmblnq3p-python3-3.11.9-env/lib/python3.11/site-packages/torch/cuda/__init__.py", line 314, in _lazy_init
    torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

I am guessing this is also because of Nix/torch not finding libcuda.so, but I have no idea how to fix this. I have cuda 12.6, nvidia-open 560 driver installed and nvidia-smi works and shows the correct versions. I also tried export LD_LIBRARY_PATH=/opt/cuda/targets/x86_64-linux/lib/stubs/ (which is where the libcuda.so from the Arch cuda package lives) before running nix run, no dice.

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