Skip to content

Coverage: gemv/gemm transpose paths and leading-dimension padding (C4/C5)#16

Merged
sigilante merged 1 commit into
masterfrom
fix/coverage-transpose-padding
May 30, 2026
Merged

Coverage: gemv/gemm transpose paths and leading-dimension padding (C4/C5)#16
sigilante merged 1 commit into
masterfrom
fix/coverage-transpose-padding

Conversation

@sigilante
Copy link
Copy Markdown
Collaborator

Two untested behavior classes, now covered. Test-only; everything passes (the code was already correct).

C4 — transpose paths. Only 'N','N' and 'T','T' gemm were exercised, and every gemv test used Trans='N':

  • test_sgemv_transy = Aᵀx (the gemv transpose branch)
  • test_sgemm_transA / test_sgemm_transB — the mixed 'T','N' and 'N','T' gemm combos

C5 — leading-dimension padding. Only s/d gemm had an ldb≠ldc test:

  • test_sgemv_padlda — gemv with lda > N (a pad column to skip)
  • test_hgemm_ldb / test_qgemm_ldbldb≠ldc for half and quad gemm

157/157.

🤖 Generated with Claude Code

Two whole behavior classes were untested:

C4 transpose paths -- only 'N','N' and 'T','T' gemm were exercised, and
every gemv test used Trans='N'. Add:
  - test_sgemv_trans: y = A^T x (the gemv transpose branch)
  - test_sgemm_transA / _transB: the mixed 'T','N' and 'N','T' gemm combos

C5 leading-dimension padding -- only s/d gemm had an ldb!=ldc test. Add:
  - test_sgemv_padlda: gemv with lda > N (a pad column to skip)
  - test_hgemm_ldb / test_qgemm_ldb: ldb!=ldc for the half and quad gemm

All pass -- the transpose and padding code is correct. 157/157.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sigilante sigilante force-pushed the fix/coverage-transpose-padding branch from e210547 to 3ef94d5 Compare May 30, 2026 17:00
@sigilante sigilante merged commit 4d3d91e into master May 30, 2026
1 check passed
@sigilante sigilante deleted the fix/coverage-transpose-padding branch May 30, 2026 17:15
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.

1 participant