Skip to content

Fix incorrect leading dimension check for SME SGEMM direct kernel path#5805

Open
matcraje wants to merge 1 commit into
OpenMathLib:developfrom
quic:fix/sgemm-direct-leading-dim-check
Open

Fix incorrect leading dimension check for SME SGEMM direct kernel path#5805
matcraje wants to merge 1 commit into
OpenMathLib:developfrom
quic:fix/sgemm-direct-leading-dim-check

Conversation

@matcraje
Copy link
Copy Markdown
Contributor

For row-major matrices, the tight-packing condition should be k==lda (A is m×k), n==ldb (B is k×n), and n==ldc (C is m×n). The old check used m==lda and k==ldc, which prevented the SME/direct kernel from being invoked except when m==k==n (square matrices).

Fixes #5794

For row-major matrices, the tight-packing condition should be k==lda
(A is m×k), n==ldb (B is k×n), and n==ldc (C is m×n). The old check
used m==lda and k==ldc, which prevented the SME/direct kernel from
being invoked except when m==k==n (square matrices).

Fixes OpenMathLib#5794

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.

SME kernel not getting hit due to incorrect conditioning on leading dimensions

1 participant