Repository navigation
[HIP] [OPUS] Add OPUS GEMM BlockScale_Mxfp8 GEMM for M <=1024 Shape. - #7387
Merged
Merged
Conversation
Use matching descriptive names for CO files, ELF entries, launchers, and tuned rows. Share identical configurations while preserving all dispatch IDs and launch constraints. Rebuild the COs and verify unchanged machine code and resource metadata.
Tune available legal OPUS candidates in one mp_tuner pass alongside FlyDSL. Require prebuilt COs, reuse JIT preparation, and remove staged search and duplicate task construction. Simplify gfx950 instance generation and registration, and share CO metadata parsing while preserving kernel IDs and generated launch code.
Consolidate bpreshuffle candidate filtering and CO/JIT generation, and remove unused registration wrappers and empty candidate expansion. Preserve all 56 local-kid configurations and CO identities. Reuse the public OPUS launcher with the existing packed scale bytes, restore upstream comments and CSV handling, and fix Black formatting and Ruff import order. Validation: CPU candidate-selection parity, complete registry/CO metadata equivalence, generated-source equivalence, repository Black and Ruff, and diff checks. No native build or GPU execution.
Express layouts with named shape and dimension tuples followed by unfolded strides and partition coordinates. Group matrix A, matrix B, scale A, scale B and output layouts consistently across the three pipelines. Preserve offset order, XOR swizzles and kernel schedules, including the direct B VGPR path. Validation: static structure checks, CPU layout/address equivalence and diff checks; no native compilation or GPU execution.
Filter small-shape policy combinations while preserving existing registered IDs, and append 180 BN256 and 36 compiler-allocated accumulator variants. The opt-in accumulator path removes the per-panel VGPR constraint without enabling manual A/C AGPR pinning. Update 435 DSV4 gfx950 small-shape rows only when OPUS strictly beats the original FlyDSL CSV. Preserve the other 199 small-shape rows, 421 large-shape rows, and 196 gfx1250 rows byte for byte. Validation: completed and verified all 634 shapes; all 3,332 wide/native candidate and control pairs passed correctness; six shapes improved and three newly beat the baseline. Ordinary code generation covers all 298 published small-shape kernel IDs with no missing BF16 dispatch entries. CSV identity, Split-K, performance metadata and preservation checks passed; git diff --check passed.
Derive tile and joint-parameter ranges from shape, CU supply, A-fragment residency, queue limits and scale-panel LDS before benchmarking once. Retain all available legal COs, a low-LDS baseline for every legal JIT geometry, and representative scheduling modes outside the primary range. Expose explicit geometry and full-search overrides without historical kernel seeds or timing-based expansion. CPU audit on 421 gfx950/CU256 shapes: 430.70 candidates on average, 411 median, 153-833 range. All 421 shapes have candidates and all 338 saved winning configurations remain in the default protected range. Historical results are used only for the coverage audit. Validation: 17 CPU checks, legality and coverage audit, Python compilation, Black, Ruff and git diff --check passed. GPU tuning has not been run.
Include the large PR cleanup while retaining the small-M tuning updates. Remove the 15 copied gfx1250 records and restore the interface regression test unchanged from main. Validation: all 8 interface tests pass; the merged files match the validated contents.
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 16, 2026
Extends the gfx950 OPUS MXFP8 blockscale GEMM (FP8 A / B, E8M0 scales 1x128 for A and 128x128 for B, BF16 C) from NT to the three other operand layouts, without a transpose copy. Stacked on PR ROCm#7387. - One pipeline / traits pair for the three directions: opus_gemm_pipeline_mxfp8_4wave_gfx950.cuh / opus_gemm_traits_mxfp8_4wave_gfx950.cuh. Each operand picks its LDS path from its storage: A_T (A stored [K, M]) and B_T (B stored [K, N]) read with ds_read_tr8; NN = (0, 1), TT = (1, 0), TN = (1, 1). 2x2 waves, LDS-DMA copies, A / B and part of C pinned to AGPRs. - Traits <BM, BN, PadM, GroupM>: 256x256 or 256x128 tiles, optional PadM, GroupM 0 (2x2 raster) / 4 / 8 / 16 as NT's gm. - CO kids 56-85, appended to co_kernels_gfx950_a8w8_blockscale_bpreshuffle.json; images and build records in gen_co/gfx950/a8w8_blockscale_bpreshuffle/ (pin toolchain, 0 spills): 56-67 NN / TT / TN x {256x256, 256x256 PadM, 256x128, 256x128 PadM} 68-85 NN / TT / TN x {256x256, 256x128} x GroupM {4, 8, 16} - Same kargs and launcher family as NT (a8w8_blockscale_bpreshuffle); the direction comes from the kernel name (_mxfp8_(nn|tt|tn)_) and the generated launcher checks that direction's operand / scale strides. - Python: opus_gemm_a8w8_blockscale_bpreshuffle_{nt,nn,tt,tn}; a kid of another direction is rejected. The shape heuristic never picks the direction kids. - build_co: the pin check of the direction kids accepts AGPR ranges filled by plain or TR8 LDS reads. - op_tests/test_opus_mxfp8_directions.py: 72 passed. test_opus_co_integration.py -k gfx950: 38 passed; test_opus_a8w8_interface.py: 8 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pass the merged mxscale bpreshuffle tuning table to module_deepgemm_opus codegen. Select gfx950 bpreshuffle kernels from tuned rows, saved compiled keys and explicit requests, without the mandatory sweep or unconditional kid 0 floor. Keep --tune for full sweep builds. Report missing literal tuned files while allowing optional model globs. Validation: clean gfx942;gfx950 module prebuild with ROCm 7.2.4 and 64 workers succeeded in 54.7s. The gfx950 MXFP8 selection contains 198 JIT kernels and 35 CO entries. Selection, saved-key/request expansion, missing CSV, 5 A16W16 registry tests, Ruff and Black checks passed.
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 18, 2026
Extends the gfx950 OPUS MXFP8 blockscale GEMM (FP8 A / B, E8M0 scales 1x128 for A and 128x128 for B, BF16 C) from NT to the three other operand layouts, without a transpose copy. Stacked on PR ROCm#7387. - One pipeline / traits pair for the three directions: opus_gemm_pipeline_mxfp8_4wave_gfx950.cuh / opus_gemm_traits_mxfp8_4wave_gfx950.cuh. Each operand picks its LDS path from its storage: A_T (A stored [K, M]) and B_T (B stored [K, N]) read with ds_read_tr8; NN = (0, 1), TT = (1, 0), TN = (1, 1). 2x2 waves, LDS-DMA copies, A / B and part of C pinned to AGPRs. - Traits <BM, BN, PadM, GroupM>: 256x256 or 256x128 tiles, optional PadM, GroupM 0 (2x2 raster) / 4 / 8 / 16 as NT's gm. - CO kids 56-85, appended to co_kernels_gfx950_a8w8_blockscale_bpreshuffle.json; images and build records in gen_co/gfx950/a8w8_blockscale_bpreshuffle/ (pin toolchain, 0 spills): 56-67 NN / TT / TN x {256x256, 256x256 PadM, 256x128, 256x128 PadM} 68-85 NN / TT / TN x {256x256, 256x128} x GroupM {4, 8, 16} - Same kargs and launcher family as NT (a8w8_blockscale_bpreshuffle); the direction comes from the kernel name (_mxfp8_(nn|tt|tn)_) and the generated launcher checks that direction's operand / scale strides. - Python: opus_gemm_a8w8_blockscale_bpreshuffle_{nt,nn,tt,tn}; a kid of another direction is rejected. The shape heuristic never picks the direction kids. - build_co: the pin check of the direction kids accepts AGPR ranges filled by plain or TR8 LDS reads. - op_tests/test_opus_mxfp8_directions.py: 72 passed. test_opus_co_integration.py -k gfx950: 38 passed; test_opus_a8w8_interface.py: 8 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 19, 2026
Extends the gfx950 OPUS MXFP8 blockscale GEMM (FP8 A / B, E8M0 scales 1x128 for A and 128x128 for B, BF16 C) from NT to the three other operand layouts, without a transpose copy. Stacked on PR ROCm#7387. - One pipeline / traits pair for the three directions: opus_gemm_pipeline_mxfp8_4wave_gfx950.cuh / opus_gemm_traits_mxfp8_4wave_gfx950.cuh. Each operand picks its LDS path from its storage: A_T (A stored [K, M]) and B_T (B stored [K, N]) read with ds_read_tr8; NN = (0, 1), TT = (1, 0), TN = (1, 1). 2x2 waves, LDS-DMA copies, A / B and part of C pinned to AGPRs; TR8 reads use the ds_read_tr8 builtin so their results land in AGPRs. - Traits <BM, BN, PadM, GroupM>: 256x256 or 256x128 tiles, optional PadM, GroupM 0 (2x2 raster) / 4 / 8 / 16 as NT's gm. - CO kids 56-85, appended to co_kernels_gfx950_a8w8_blockscale_bpreshuffle.json; images and build records in gen_co/gfx950/a8w8_blockscale_bpreshuffle/ (pin toolchain, 0 spills): 56-67 NN / TT / TN x {256x256, 256x256 PadM, 256x128, 256x128 PadM} 68-85 NN / TT / TN x {256x256, 256x128} x GroupM {4, 8, 16} - Same kargs and launcher family as NT (a8w8_blockscale_bpreshuffle); the direction comes from the kernel name (_mxfp8_(nn|tt|tn)_) and the generated launcher checks that direction's operand / scale strides. - Called through the public exact-kid entry opus_gemm(..., family= "a8w8_blockscale_bpreshuffle", layout="bpreshuffle", kid=56..85); a tensor layout of another direction is rejected by the launcher's stride check. The shape heuristic / tuner never pick the direction kids, so default_compiled_keys adds them to the gfx950 compile set. - build_co: the pin check of the direction kids accepts AGPR ranges filled by plain or TR8 LDS reads. - op_tests/test_opus_mxfp8_directions.py + test_opus_a8w8_interface.py: 80 passed; test_opus_co_integration.py -k gfx950: 38 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 19, 2026
Extends the gfx950 OPUS MXFP8 blockscale GEMM (FP8 A / B, E8M0 scales 1x128 for A and 128x128 for B, BF16 C) from NT to the three other operand layouts, without a transpose copy. Stacked on PR ROCm#7387. - One pipeline / traits pair for the three directions: opus_gemm_pipeline_mxfp8_4wave_gfx950.cuh / opus_gemm_traits_mxfp8_4wave_gfx950.cuh. Each operand picks its LDS path from its storage: A_T (A stored [K, M]) and B_T (B stored [K, N]) read with ds_read_tr8; NN = (0, 1), TT = (1, 0), TN = (1, 1). 2x2 waves, LDS-DMA copies, A / B and part of C pinned to AGPRs; TR8 reads use the ds_read_tr8 builtin so their results land in AGPRs. - Traits <BM, BN, PadM, GroupM>: 256x256 or 256x128 tiles, optional PadM, GroupM 0 (2x2 raster) / 4 / 8 / 16 as NT's gm. - CO kids 56-85, appended to co_kernels_gfx950_a8w8_blockscale_bpreshuffle.json; images and build records in gen_co/gfx950/a8w8_blockscale_bpreshuffle/ (pin toolchain, 0 spills): 56-67 NN / TT / TN x {256x256, 256x256 PadM, 256x128, 256x128 PadM} 68-85 NN / TT / TN x {256x256, 256x128} x GroupM {4, 8, 16} - Same kargs and launcher family as NT (a8w8_blockscale_bpreshuffle); the direction comes from the kernel name (_mxfp8_(nn|tt|tn)_) and the generated launcher checks that direction's operand / scale strides. - Called through the public exact-kid entry opus_gemm(..., family= "a8w8_blockscale_bpreshuffle", layout="bpreshuffle", kid=56..85); a tensor layout of another direction is rejected by the launcher's stride check. The shape heuristic / tuner never pick the direction kids, so default_compiled_keys adds them to the gfx950 compile set. - build_co: the pin check of the direction kids accepts AGPR ranges filled by plain or TR8 LDS reads. - op_tests/test_opus_mxfp8_directions.py + test_opus_a8w8_interface.py: 80 passed; test_opus_co_integration.py -k gfx950: 38 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 19, 2026
Extends the gfx950 OPUS MXFP8 blockscale GEMM (FP8 A / B, E8M0 scales 1x128 for A and 128x128 for B, BF16 C) from NT to the three other operand layouts, without a transpose copy. Stacked on PR ROCm#7387. - One pipeline / traits pair for the three directions: opus_gemm_pipeline_mxfp8_4wave_gfx950.cuh / opus_gemm_traits_mxfp8_4wave_gfx950.cuh. Each operand picks its LDS path from its storage: A_T (A stored [K, M]) and B_T (B stored [K, N]) read with ds_read_tr8; NN = (0, 1), TT = (1, 0), TN = (1, 1). 2x2 waves, LDS-DMA copies, A / B and part of C pinned to AGPRs; TR8 reads use the ds_read_tr8 builtin so their results land in AGPRs. - Traits <BM, BN, PadM, GroupM>: 256x256 or 256x128 tiles, optional PadM, GroupM 0 (2x2 raster) / 4 / 8 / 16 as NT's gm. - CO kids 56-85, appended to co_kernels_gfx950_a8w8_blockscale_bpreshuffle.json; images and build records in gen_co/gfx950/a8w8_blockscale_bpreshuffle/ (pin toolchain, 0 spills): 56-67 NN / TT / TN x {256x256, 256x256 PadM, 256x128, 256x128 PadM} 68-85 NN / TT / TN x {256x256, 256x128} x GroupM {4, 8, 16} - Same kargs and launcher family as NT (a8w8_blockscale_bpreshuffle); the direction comes from the kernel name (_mxfp8_(nn|tt|tn)_) and the generated launcher checks that direction's operand / scale strides. - Called through the public exact-kid entry opus_gemm(..., family= "a8w8_blockscale_bpreshuffle", layout="bpreshuffle", kid=56..85); a tensor layout of another direction is rejected by the launcher's stride check. The shape heuristic / tuner never pick the direction kids. Like the other gfx950 MXFP8 kids they are compiled on request (tuned rows, the compiled-kids sidecar or opus_gemm_tune._ensure_kids_compiled), not by default. - build_co: the pin check of the direction kids accepts AGPR ranges filled by plain or TR8 LDS reads. - test_opus_co_integration.py: NN / TT / TN kids (256x256 across the scale panel, 256x128 PadM, GroupM 16) against a torch reference, and another direction's launcher rejecting the strides. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 21, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 23, 2026
Drop the host-row scan from the split-K reduce arch bucketing and the reduce-TU check; use main's version (ROCm#7387) as is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 23, 2026
…MXFP8 The NT / NN / TT / TN kernels take plain B, so they no longer live with the preshuffled-B COs: - kids 56-95 move to gen_co/co_kernels_gfx950_a8w8_blockscale.json and gen_co/gfx950/a8w8_blockscale/ (with their own build_info.json); the bpreshuffle manifest and directory are back to their ROCm#7387 contents. - each manifest entry carries its image_dir; the CO loader takes the image path relative to gen_co/gfx950/, and build_co writes to the kids' own directory by default. - headers renamed to opus_gemm_{pipeline,traits}_a8w8_blockscale_mxfp8_4wave_gfx950.cuh. The 40 COs are moved, not rebuilt; rebuilding them from the renamed sources gives identical disassembly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 23, 2026
… bpreshuffle Stacked on ROCm#7387 / ROCm#8283. Two gfx950 families of one pre-compiled 2x2 pipeline (opus_gemm_pipeline_a8w8_mxfp8_gfx950.cuh, traits B_SHUF picks the B layout), each with the same 17 tiles / variants (nob 256x256; np 256x256 / 256x128 / 128x256 / 128x128 / 192x256 / 256x192; persistent and split-K on those tiles but 256x256, which runs out of registers there): - a8w8_mxfp8: kids 100-116, plain operands, one image per layout <name>_<nt|nn|tt|tn>.co (68 .co); the launcher picks NT / NN / TT / TN from the XQ / WQ strides. B is copied and read as the mirror of A: B [N, K] with A [M, K]'s LDS swizzle, B stored [K, N] k-major + ds_read_tr8 as A stored [K, M]. A stored [K, M] needs M % 16, B stored [K, N] N % 16. - a8w8_mxfp8_bpreshuffle: kids 0-16 (kid + 100 is the same tile / variant in a8w8_mxfp8), NT with B = shuffle_weight(w, (16, 16)) (the input of gemm_a8w8_mxfp8_bpreshuffle), one image <name>.co (17 .co). Row-major 1x32 e8m0 scales, bf16 C, per-tile 64-bit C base (outputs past 4 GiB), split-K partials summed by splitk_reduce_kernel. gemm_a8w8_mxfp8_bpreshuffle routes libtype "opus" tuned rows to the bpreshuffle kids; the mxfp8 tuner times them; DSV4 gfx950 1x32 M >= 1024 rows retuned (OPUS on 18 of 18). C++ entries opus_gemm_a8w8_mxfp8_launch / opus_gemm_a8w8_mxfp8_bpreshuffle_launch (one shared check, per-family kid tables). gfx950 pre-compiled kernel infrastructure (on ROCm#8283's loader / build_co): - opus_co_launch_gfx950.cuh: opus_co_launch_gfx950<int KARGS_BYTES = 96> for the 112-byte MXFP8 kargs; the launchers load "<family>/<name>.co" through ROCm#8283's co_kernel(symbol, image relative to gen_co/gfx950/). - build_co.py --arch gfx950 --family a8w8_mxfp8 | a8w8_mxfp8_bpreshuffle builds a family on its own (as ROCm#7983's a4w4): device-only clang++ on the pin toolchain, -cuid pinned, into gen_co/gfx950/<family>/ with its build_info.json. The blockscale build is unchanged (the default family). - gen_instances.py: host launchers marked splitk_reduce_arch emit the reduce TU. - tuner: opus_mxfp8_candidates / run_gemm_opus_mxfp8 beside the blockscale OPUS search (only blockscale kids go to ensure_opus_kids_compiled). MXFP8 names are prefixed (a8w8_mxfp8_co_kernels_declared, ...), so nothing collides with gfx950_co_kernels_declared / opus_candidates / run_gemm_opus. The 85 .co are byte-reproducible with the build above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 23, 2026
The NT / NN / TT / TN kernels take plain B, so they no longer register under a8w8_blockscale_bpreshuffle or need layout="bpreshuffle": - new family a8w8_blockscale_mxfp8 (kernel tag a8w8_blockscale_mxfp8, layout "plain", BF16 Y), gfx950 only, own kid space 0-39: NT 0-9, NN 10-19, TT 20-29, TN 30-39 (manifest renumbered; COs unchanged). - C++ entry opus_gemm_a8w8_blockscale_mxfp8_launch with its own gfx950 kid table (GENERATE_A8W8_BLOCKSCALE_MXFP8_KID_DISPATCH_GFX950). - opus_gemm(..., family="a8w8_blockscale_mxfp8", layout="plain", kid=...) and gemm_a8w8_blockscale_opus route through it. - The family is compiled as a mandatory family, so candidate_kids_for_shape and default_compiled_keys are back to ROCm#7387. - build_co --family selects the gfx950 CO manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fyzyukk
added a commit
to Fyzyukk/aiter
that referenced
this pull request
Nov 23, 2026
… bpreshuffle Stacked on ROCm#7387 / ROCm#8283. Two gfx950 families of one pre-compiled 2x2 pipeline (opus_gemm_pipeline_a8w8_mxfp8_gfx950.cuh, traits B_SHUF picks the B layout), each with the same 17 tiles / variants (nob 256x256; np 256x256 / 256x128 / 128x256 / 128x128 / 192x256 / 256x192; persistent and split-K on those tiles but 256x256, which runs out of registers there): - a8w8_mxfp8: kids 100-116, plain operands, one image per layout <name>_<nt|nn|tt|tn>.co (68 .co); the launcher picks NT / NN / TT / TN from the XQ / WQ strides. B is copied and read as the mirror of A: B [N, K] with A [M, K]'s LDS swizzle, B stored [K, N] k-major + ds_read_tr8 as A stored [K, M]. A stored [K, M] needs M % 16, B stored [K, N] N % 16. - a8w8_mxfp8_bpreshuffle: kids 0-16 (kid + 100 is the same tile / variant in a8w8_mxfp8), NT with B = shuffle_weight(w, (16, 16)) (the input of gemm_a8w8_mxfp8_bpreshuffle), one image <name>.co (17 .co). Row-major 1x32 e8m0 scales, bf16 C, per-tile 64-bit C base (outputs past 4 GiB), split-K partials summed by splitk_reduce_kernel. gemm_a8w8_mxfp8_bpreshuffle routes libtype "opus" tuned rows to the bpreshuffle kids; the mxfp8 tuner times them; DSV4 gfx950 1x32 M >= 1024 rows retuned (OPUS on 18 of 18). C++ entries opus_gemm_a8w8_mxfp8_launch / opus_gemm_a8w8_mxfp8_bpreshuffle_launch (one shared check, per-family kid tables). gfx950 pre-compiled kernel infrastructure (on ROCm#8283's loader / build_co): - opus_co_launch_gfx950.cuh: opus_co_launch_gfx950<int KARGS_BYTES = 96> for the 112-byte MXFP8 kargs; the launchers load "<family>/<name>.co" through ROCm#8283's co_kernel(symbol, image relative to gen_co/gfx950/). - build_co.py --arch gfx950 --family a8w8_mxfp8 | a8w8_mxfp8_bpreshuffle builds a family on its own (as ROCm#7983's a4w4): device-only clang++ on the pin toolchain, -cuid pinned, into gen_co/gfx950/<family>/ with its build_info.json. The blockscale build is unchanged (the default family). - gen_instances.py: host launchers marked splitk_reduce_arch emit the reduce TU. - tuner: opus_mxfp8_candidates / run_gemm_opus_mxfp8 beside the blockscale OPUS search (only blockscale kids go to ensure_opus_kids_compiled). MXFP8 names are prefixed (a8w8_mxfp8_co_kernels_declared, ...), so nothing collides with gfx950_co_kernels_declared / opus_candidates / run_gemm_opus. The 85 .co are byte-reproducible with the build above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 10 tasks
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.
Summary
Add an OPUS backend for blockscale mxfp8 GEMM with B preshuffle on gfx950, and improve performance for small shapes (M <= 1024). Enable the existing gemm_a8w8_blockscale_bpreshuffle interface to select tuned OPUS kernels.
Details
Speedup Distribution
634 gfx950/CU256 small-M shapes (M <= 1024); the tuned table selects OPUS for 425 shapes.