Skip to content

[Metal] Fix gemv_wide dtype eligibility check - #5018

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
ac-mmi:fix/gemv-wide-dtype-check
Nov 29, 2026
Merged

zcbenz merged 1 commit into
ml-explore:mainfrom
ac-mmi:fix/gemv-wide-dtype-check

Conversation

@ac-mmi

@ac-mmi ac-mmi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Fix the dtype check in gemv_wide_config(). The previous || condition rejected all dtypes. Replaced it with && so FP16, BF16 and FP32 are accepted.

Tests: test_wide_matmul, test_wide_addmm, test_gather_mm_blocks all passing.

Fixes the issue found in #4977.
@zcbenz

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🙏

@zcbenz
zcbenz merged commit 6371f1c into ml-explore:main Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants