Repository navigation
Extend HIP batched F32 matmul and IM2COL kernels - #1150
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Extend the opt-in
gfx1151_v1HIP implementation with equal-sized batched F32 matrix multiplication and improved 1D IM2COL indexing and workload admission.CUDA and default HIP execution are unchanged. The kernels run only when
gfx1151_v1is selected.Validation
AMD Radeon 8060S (
gfx1151), ROCm 7.2.1, Debug C++17 build with-O2, eight CPU threads. Published Q8 packages were downloaded directly from pinned Hugging Face revisions and checked against their recorded hashes.The comparison uses the same PR binary: default HIP versus
gfx1151_v1, in serial A–B–B–A order. Each session has a warmup, a short request, a long request, and a repeated short request, with seed 1234 and identical settings on both sides. English inputs are 108/661 characters; Irodori's Japanese inputs are 74/249 characters. Warmup is excluded; RTF is total measured request time divided by total generated audio duration.gfx1151_v1RTFThese numbers measure the full selected implementation against default HIP, not the incremental gain of this patch over the implementation already on main.
gfx1151_v1correctness suite: 149/149 pass on default HIP and 149/149 pass ongfx1151_v1, compared against the CPU reference. This includes batched/strided F32 multiplication, precision guards, native fallback controls, and partial-tile IM2COL cases.AMD validation run