Skip to content

Add OpenCL backend support #680

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Add OpenCL backend support #680

wants to merge 5 commits into from

Conversation

rmatif
Copy link

@rmatif rmatif commented May 18, 2025

This PR adds support for the OpenCL backend. Currently, this support is limited to Adreno GPUs. With the current ggml submodule, only Adreno 7xx series GPUs are supported. However, a previous PR that synced ggml will also enable support for Adreno 6xx series GPUs.

I'll update Local-Diffusion to use the latest ggml-opencl for those who don't want to bother with compiling and using adb

EDIT: kinda works with this patch ggml-org/ggml@8606b82. Performance is 2× slower than the CPU. I don't think it's worth adding this backend at the moment

@drHuangMHT
Copy link

drHuangMHT commented May 21, 2025

Just out of curiosity, will this also work with desktop GPUs on x64 architecture in the future? Any possibility?

@rmatif
Copy link
Author

rmatif commented May 21, 2025

Just out of curiosity, will this also work with desktop GPUs on x64 architecture in the future? Any possibility?

It may run on some Intel GPUs, but it's not optimized for them. For desktop GPUs, there are already plenty of well-optimized backends available

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

Successfully merging this pull request may close these issues.

2 participants