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

Error: No compatible device found #154

Closed
ducan-ne opened this issue Nov 1, 2024 · 5 comments
Closed

Error: No compatible device found #154

ducan-ne opened this issue Nov 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ducan-ne
Copy link

ducan-ne commented Nov 1, 2024

I’m getting an error when trying to run Blitz (https://github.com/DioxusLabs/blitz) on a server. Are there any native dependencies required to run Blitz? I suspect the issue might be GPU-related, as my server only has CPU.

The error is triggered by this code:

.expect("No compatible device found");

@nicoburns
Copy link
Collaborator

You likely won't be able to run the current version of Blitz on a server that doesn't have a GPU. This is because of our dependency on wgpu (via vello) for rendering. There are two ways in which this could be made to work:

  • Use a server with a GPU
  • Someone could write an alternative to blitz-renderer-vello using a different rendering backend which supports CPU-only rendering (for example, skia)

That's definitely something I would like to do long-term. But isn't on our short-term roadmap. I'd be happy to provide pointers if this is something that you would be interested in implementing.

@nicoburns nicoburns added the bug Something isn't working label Nov 1, 2024
@ducan-ne
Copy link
Author

ducan-ne commented Nov 3, 2024

I see, server with a GPU is pretty expensive, I'll keep waiting for someone to implement a Skia renderer 😅

@nicoburns
Copy link
Collaborator

@ducan-ne I've discovered a 3rd approach. Install software GPU emulation:

See https://github.com/linebender/vello/blob/main/.github/workflows/ci.yml#L210

@ducan-ne
Copy link
Author

hey @nicoburns, thanks it's working
it's consuming CPU and memory than I thought but glad to see the code works, I think the Skia backend would be more efficient on using CPUs than GPU emulation.

Should I close this issue now?

@nicoburns
Copy link
Collaborator

I'm going to close this one, but I've opened #157 to track the cpu-renderer feature.

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

2 participants