Archived
libr3d: the wave-matrix record -- the six 16x16x16 variants, the MAC-core measurement, the i8-x4 gap
RDNA3's ISA lists exactly six wave-matrix instructions (f16, bf16, int8 and int4 in; f32, f16, bf16 and i32 accumulating) and the toolchain emits them on every gfx11 target; they run over multiple cycles driving the DOT pipeline internally, and the MAC-core measurement on the 16-CU gfx1102 part confirms it: f32-acc f16 19.11, f32-acc bf16 19.24, f16-acc f16 19.44, i32-acc i8 19.29 against the paired dot2 path's 18.86 TFLOP/s -- the same pipe within three percent, matching the full-kernel 1.99-vs-1.97 already in r3d_common.h. The i32-acc i4 tile is the exception at 25.68 TFLOP/s, 35% above, but it takes i4 in both operands and the grids served here pair i8 activations against i4 and i2 weights: there is no mixed-precision integer WMMA on RDNA3, so that pipe is unreachable from the w4a8 and w2a8 rows. Commentary only -- the rationale passages in the README, CMakeLists.txt, r3d_rows.cpp, r3d_plugin.h and r3d_selftest.cpp now state the measured record; no kernel, lane map or numeric path changes, and the rebuilt library is byte-identical (selftest 78 rows, 0 failed, 0 skipped).
This commit is contained in:
1 parent
6cb9826975
commit
890715fd96
5 files changed
+49
-31
No files matched your search
@@ -1,8 +1,9 @@
|
||||
# libr3d serves RDNA3 only, declared here and nowhere else. Its kernels rely on wave32 and on
|
||||
# instructions RDNA3 has: v_dot2acc_f32_f16 for the matrix work, v_cvt_pkrtz_f16_f32, DPP16 and
|
||||
# v_permlanex16. They do not use the gfx12 WMMA fragment layouts or gfx12-only instructions such as
|
||||
# global_load_tr_b128, and they decode every quantised weight in software, because RDNA3 has no
|
||||
# fp8 conversion instruction and this ROCm declares no WMMA builtin for any gfx11 target.
|
||||
# v_permlanex16. They do not use the WMMA fragment layouts (RDNA3's 16x16x16 wave-matrix family is
|
||||
# a re-tile of the dot2 lane map, not a drop-in) or gfx12-only instructions such as
|
||||
# global_load_tr_b128, and they decode every quantised weight in software: the lane map, not a
|
||||
# missing instruction, is the reason.
|
||||
#
|
||||
# A build targeting other cards skips libr3d. The engine then has no device kernel library for that
|
||||
# card and refuses ops only a reference library implements, unless
|
||||
|
||||
Reference in new issue
Block a user