Archived
libr4d: gemm_m2xfp4a8_decode and gemm_m2xfp4a8_tiled -- the MXFP4 x fp8 GEMMs with the m2xfp4 meta plane folded into the e4m3 staging table
Two gemm_nt_q rows at dtype m2xfp4: a split-K decode kernel that stages the weight through LDS, and a tiled prefill kernel after the mxfp4a8 one. The relayout appends the [K/32][N] meta plane to the fragment-order codes and r4d_m2xfp4.h's e4m3 staging table takes the subgroup multiplier as a second index, so the WMMAs and the epilogue are the mxfp4 kernels'. The decode row keeps its own per-output arrival counters, as mxd_out_ctr does. r4d_emu_m2xfp4 runs both kernels on the host, and r4d_selftest and kbench (a 4e-2 tolerance for the k = 3 rounding) cover the rows. The raw entry points are declared in r4d_m2xfp4.h, beside the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
21c01f9930
commit
dab34da373
14 files changed
+1901
-9
No files matched your search
+4
-1
@@ -257,7 +257,10 @@ enum {
|
||||
/* The same GEMM's 5-bit expert weight: per row, R4D_DT_MOEW4's nibble plane of the codes' low
|
||||
* four bits (the magnitude), then the sign bits, one dword per 32 elements in the order the
|
||||
* kernel merges them (r4d_layout.cpp, moew5_row). A row is 5K/8 bytes. */
|
||||
R4D_DT_MOEW5 = RAD_DT_PLUGIN_BASE + 8
|
||||
R4D_DT_MOEW5 = RAD_DT_PLUGIN_BASE + 8,
|
||||
/* The M2XFP4 GEMMs' stored weight: R4D_DT_MXFP4_FRAG's fragment-order e2m1 codes, then the
|
||||
* [K/32][N] meta plane the kernel reads beside the E8M0 exponents (r4d_layout.cpp, m2xfp4). */
|
||||
R4D_DT_M2XFP4_FRAG = RAD_DT_PLUGIN_BASE + 9
|
||||
};
|
||||
|
||||
/* The grouped MoE GEMM's code tables, as the four dwords w4_e4m3's byte permutes read
|
||||
|
||||
Reference in new issue
Block a user