Skip to content

vulkan: support all backend tests for SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU/NORM - #24582

Merged
jeffbolznv merged 4 commits into
ggml-org:masterfrom
jeffbolznv:noncontig_unary_3
Jun 23, 2026
Merged

jeffbolznv merged 4 commits into
ggml-org:masterfrom
jeffbolznv:noncontig_unary_3

Conversation

@jeffbolznv

Copy link
Copy Markdown
Contributor

Overview

SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU already supported noncontig, but were missing f16 variants. Port them to use unary.comp since they're all unary ops. NORM was missing support for noncontiguous tensors.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, used codex. I told it what to do and reviewed all the changes.

@jeffbolznv
jeffbolznv requested a review from a team as a code owner June 13, 2026 15:22
@github-actions github-actions Bot added Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels Jun 13, 2026
Comment thread ggml/src/ggml-vulkan/ggml-vulkan.cpp Outdated
@jeffbolznv
jeffbolznv requested a review from ggerganov as a code owner June 13, 2026 16:40
@github-actions github-actions Bot added the testing Everything test related label Jun 13, 2026
@jeffbolznv
jeffbolznv requested review from a team as code owners June 13, 2026 20:41
@github-actions github-actions Bot added Nvidia GPU Issues specific to Nvidia GPUs WebGPU labels Jun 13, 2026

@0cc4m 0cc4m left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Vulkan changes are good.

case GGML_OP_RMS_NORM:
case GGML_OP_L2_NORM:
return true;
return ggml_is_contiguous_rows(op->src[0]);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @ggml-org/ggml-cuda to review this file.

@jeffbolznv
jeffbolznv merged commit 72a9269 into ggml-org:master Jun 23, 2026
37 checks passed
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
…LU/NORM (ggml-org#24582)

* vulkan: make SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU use unary.comp

* vulkan: make NORM support noncontig

* add noncontiguous row test cases for norm/l2_norm, handle this in the CPU backend and l2_norm.comp

* fix supports_op for cuda and webgpu
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
…LU/NORM (ggml-org#24582)

* vulkan: make SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU use unary.comp

* vulkan: make NORM support noncontig

* add noncontiguous row test cases for norm/l2_norm, handle this in the CPU backend and l2_norm.comp

* fix supports_op for cuda and webgpu
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
…LU/NORM (ggml-org#24582)

* vulkan: make SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU use unary.comp

* vulkan: make NORM support noncontig

* add noncontiguous row test cases for norm/l2_norm, handle this in the CPU backend and l2_norm.comp

* fix supports_op for cuda and webgpu
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
…LU/NORM (ggml-org#24582)

* vulkan: make SQR/SQRT/SIN/COS/CLAMP/LEAKY_RELU use unary.comp

* vulkan: make NORM support noncontig

* add noncontiguous row test cases for norm/l2_norm, handle this in the CPU backend and l2_norm.comp

* fix supports_op for cuda and webgpu
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 Nvidia GPU Issues specific to Nvidia GPUs testing Everything test related Vulkan Issues specific to the Vulkan backend WebGPU

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants