Skip to content

OpenCL: Add group_norm, concat, tsembd, upscale, tanh, pad and repeat #13781

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

rmatif
Copy link

@rmatif rmatif commented May 25, 2025

This PR adds the following ops to OpenCL:

  • GROUP_NORM
  • CONCAT
  • TIMESTEP_EMBEDDING
  • UPSCALE (both nearest and bilinear)
  • UNARY_OP_TANH
  • PAD
  • REPEAT

With these additions, OpenCL now (hopefully) supports all the ops used in stable-diffusion.cpp.

All tests passed using test-backend-ops. Tested on: Adreno 750, 740, 730

Note: I noticed that some im2col and rope tests fail on Adreno 740 and 730. These issues existed prior to this PR and may need to be addressed in the future

@lhez @max-krasnyansky

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant