Skip to content

tests : drop SYCL special-casing in test-backend-ops.cpp - #28688

Merged
ggerganov merged 1 commit into
masterfrom
gg/tests-remove-sycl-special-cases
Sep 10, 2026
Merged

ggerganov merged 1 commit into
masterfrom
gg/tests-remove-sycl-special-cases

Conversation

@ggerganov

Copy link
Copy Markdown
Member

Overview

ref #28254 (comment)

Partially revert the test-backend-ops changes from #28254 as they are specific to the SYCL backend.

Requirements

@github-actions github-actions Bot added the testing Everything test related label Sep 10, 2026
@ggerganov
ggerganov merged commit e5a8d43 into master Sep 10, 2026
23 of 26 checks passed
@ggerganov
ggerganov deleted the gg/tests-remove-sycl-special-cases branch September 10, 2026 10:43
Comment on lines -9720 to -9727
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 384, 1, 384)); // m=12 (N=384)
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 384, 32, 384)); // m=12 (batch)
test_cases.emplace_back(
new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 384, 4, 384, { 2, 3 })); // m=12 (multi-dim)
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 768, 1, 768)); // m=12 (N=768)
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 640, 1, 640)); // m=20 (N=640)
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 640, 32, 640)); // m=20 (batch)
test_cases.emplace_back(new test_mul_mat_hadamard(GGML_TYPE_F32, GGML_TYPE_F32, 1280, 1, 1280)); // m=20 (N=1280)

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.

These UT cases are designed for SYCL backend code.
It should be kept.

How do you think?

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.

When a new case is added for a backend, other backends UT will be impacted.
We have met the more cases before: other backend add new UT cases which SYCL backend doesn't support.
It break the SYCL backend UT.
It will push SYCL backend to support the new cases as soon.

Why we remove them now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These UT cases are designed for SYCL backend code.

The test-backend-ops only has generic tests that work with all backends. We should not add tests that work only with a single backend. See #28254 (comment) for more info.

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.

OK! Got it!

Thank you!

@philip-jingxin philip-jingxin Sep 14, 2026 •

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.

I originally used a special-case test because the operator was only implemented for SYCL at the time. PR #28490 adds the CPU implementation, now these tests can pass CPU tests. But other GPU versions are not implemented, should I remove the tests from the PR?

pl752 pushed a commit to pl752/llama.cpp that referenced this pull request Sep 15, 2026
zsogitbe pushed a commit to zsogitbe/llama.cpp that referenced this pull request Sep 17, 2026
BonkusCheemus pushed a commit to BonkusCheemus/strix-llama.cpp that referenced this pull request Oct 1, 2026
Conflict resolutions:
- llama-context: keep LLAMA_GRAPH_TIMING, add upstream gf_res_prev_active reuse check
- llama-graph: take upstream input tensor names; self_kq_mask_swa to match
- server-context: combine spec_prefill_active and stateless task checks
- test-backend-ops: take upstream (SYCL special-casing dropped in ggml-org#28688)
- vulkan: take upstream split, reapply coopmat shmem pad (also for the new MULMAT_QUANT spec), UMA readback gate (now in ggml-vulkan-buffers.cpp), argsort nrows and topk comment

Assisted-by: Claude Opus 5.5
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants