Skip to content

Relax MXFP8 GEMM K constraint from multiple-of-128 to multiple-of-64#642

Open
JohnQinAMD wants to merge 1 commit into
devfrom
fix/mxfp8-gemm-k-multiple-of-64
Open

Relax MXFP8 GEMM K constraint from multiple-of-128 to multiple-of-64#642
JohnQinAMD wants to merge 1 commit into
devfrom
fix/mxfp8-gemm-k-multiple-of-64

Conversation

@JohnQinAMD

Copy link
Copy Markdown

The ROCm MXFP8 GEMM guard required K % 128 == 0, but hipBLASLt has MXFP8 (VEC32_UE8M0, scaleA/B=3) solutions for every K % 64 == 0. Verified on MI355X (gfx950) via hipblaslt-bench: K=64/128/192/256/384 succeed; K=32/96/160/224/288 return "no solution". The 128 bound was over-strict and rejected supported shapes such as K=192. M/N multiple-of-16 requirements are unchanged.

Description

Please include a brief summary of the changes, relevant motivation and context.

Fixes # (issue)

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Changes

Please list the changes introduced in this PR:

  • Change A
  • Change B

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

The ROCm MXFP8 GEMM guard required K % 128 == 0, but hipBLASLt has MXFP8
(VEC32_UE8M0, scaleA/B=3) solutions for every K % 64 == 0. Verified on MI355X
(gfx950) via hipblaslt-bench: K=64/128/192/256/384 succeed; K=32/96/160/224/288
return "no solution". The 128 bound was over-strict and rejected supported
shapes such as K=192. M/N multiple-of-16 requirements are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JohnQinAMD JohnQinAMD force-pushed the fix/mxfp8-gemm-k-multiple-of-64 branch from a435694 to 4092e1e Compare June 19, 2026 22:19

@ipanfilo ipanfilo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Corresponding changes in test_cublas_gemm are needed to test k%64 on supported platforms

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