Skip to content

ggml-cpu: fix unused type warnings in the mul_mat chunk helpers - #260

Merged
khosravipasha merged 1 commit into
prismfrom
fix/cpu-unused-type
Sep 24, 2026
Merged

khosravipasha merged 1 commit into
prismfrom
fix/cpu-unused-type

Conversation

@bri-prism

Copy link
Copy Markdown
Collaborator

The release build (LLAMA_FATAL_WARNINGS=ON) fails on every CPU target since #206: moving the mul_mat chunk helpers to ggml_cpu_vec_dot(src0) left type unused in both of them.

This marks the parameter in ggml_compute_forward_mul_mat_one_chunk as unused and drops the dead local in ggml_compute_forward_mul_mat_id_one_chunk. No behavior change.

Tested: a full macOS build with the release workflow's CMake flags and -DLLAMA_FATAL_WARNINGS=ON now passes. Not built on Linux/gcc or Windows here; the release run will cover those.

Failing run: https://github.com/PrismML-Eng/llama.cpp/actions/runs/35940025804

The switch to ggml_cpu_vec_dot left type unused in both helpers, which breaks builds with LLAMA_FATAL_WARNINGS.
@github-actions github-actions Bot added the ggml label Sep 24, 2026
@khosravipasha
khosravipasha requested a balanced review from Copilot September 24, 2026 01:23
@khosravipasha
khosravipasha merged commit ee8ad0e into prism Sep 24, 2026
9 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The warning fixes are correct, narrowly scoped, and behavior-preserving.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes fatal unused-variable warnings in CPU matrix multiplication helpers without changing behavior.

Changes:

  • Marks the retained type parameter as unused.
  • Removes an unused local type variable.
File Description
ggml/​src/​ggml-cpu/​ggml-cpu.c Resolves unused-type warnings in mul_mat chunk helpers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@khosravipasha
khosravipasha deleted the fix/cpu-unused-type branch September 24, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants