Performance Parity for H100_mma_ABt and H100_mma Kernels #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This 4-line code change achieves performance parity between the transposed (
H100_mma_ABt) and non-transposed (H100_mma) matmul kernels by dispatching the largest available tensor core instruction (wgmmaof size64x16x256). Previously, the transposed kernel was approximately 75-80 TFLOPS slower than its non-transposed counterpart.Changes
64x16x64to64x16x256.Btensor. Ensures correctness for cases whereN != K, resolving previous correctness check failures.Benchmark Changes
N=4096) to rectangular (M=2048, N=4096, K=8192) to showcase and validate performance improvements and correctness for non-square inputs.Testing
Verified correctness and performance improvements through internal benchmarks. Confirmed stable results and parity with
H100_mma.