Skip to content

ggml: Add basic SET_ROWS support in WebGPU #15137

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

Merged
merged 4 commits into from
Aug 6, 2025

Conversation

reeselevine
Copy link
Collaborator

This allows the CI to run using SET_ROWS instead of CPY.

  • Adds basic SET_ROWS f32-> f16 shader/setup
  • Since WGSL does not support 64-bit values, an error should be reported if a SET_ROWS index is > 2^32.
  • To do this, an error value is set in the shader, and GGML_ABORT is called when a later callback sees that there has been an error.
  • This PR also adds code for setting up a debug buffer, which can be useful for understanding what's going on in shaders while developing.

@github-actions github-actions bot added devops improvements to build systems and github actions ggml changes relating to the ggml tensor library for machine learning labels Aug 6, 2025
@reeselevine reeselevine merged commit 5fd160b into ggml-org:master Aug 6, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops improvements to build systems and github actions ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants