#[repr(C)]pub struct TensorExtTestArgs {
pub output: u64,
pub a_fp16: u64,
pub b_fp16: u64,
pub a_int8: u64,
pub b_int8: u64,
pub n_shires: u64,
}Expand description
Arguments for the tensor-extension instruction test kernel (tensor-ext-test).
All Minions read the same shared input buffers and write their results to
per-Minion sections of output for independent host verification.
§Output buffer layout (per Minion, stride TENSOR_EXT_TEST_OUT_STRIDE)
Minion shire * 32 + m writes at byte offset
(shire * 32 + m) * TENSOR_EXT_TEST_OUT_STRIDE:
[0..64): TensorFMA16A32 result: 4 x f32, expected[5.0, 0.0, 0.0, 0.0].[64..128): TensorIMA8A32 result: 4 x i32 stored as f32 bit patterns, expected[4, 0, 0, 0].[128..192): TensorStoreFromScp passthrough: 64 bytes copied verbatim from L1 scratchpad line 0, expected to equal thea_fp16buffer contents.
§Input data
Inputs encode the simplest non-trivial tile (AROWS=0, ACOLS=0, BCOLS=0):
a_fp16:[2.0_f16, 3.0_f16, 0..0](64 bytes; first 4 bytes used).b_fp16: TenB-interleaved fp16 pairs:[1.0, 1.0, 0.0, ...](64 bytes; first 4 bytes =b[0,0]=1.0andb[1,0]=1.0for output col 0).a_int8:[1, 1, 1, 1, 0..0](64 bytes; first 4 bytes used).b_int8: IMA8A32-interleaved int8 groups: col 0 =[1,1,1,1], cols 1-3 = 0 (64 bytes; first 16 bytes used).
Fields§
§output: u64Base address of the output buffer: n_shires * 32 * TENSOR_EXT_TEST_OUT_STRIDE bytes, 64-byte aligned.
a_fp16: u6464-byte-aligned device address of the fp16 A input (64 bytes).
b_fp16: u6464-byte-aligned device address of the fp16 B input in TenB interleaved
format (64 bytes). (PRM TensorFMA16A32: TenB[k].h[j*2+0] = b[2k,j].)
a_int8: u6464-byte-aligned device address of the int8 A input (64 bytes).
b_int8: u6464-byte-aligned device address of the int8 B input in IMA8A32 interleaved
format (64 bytes). (PRM TensorIMA8A32: word j = [b[0,j]|b[1,j]|b[2,j]|b[3,j]].)
n_shires: u64Extent of the output array in shires (1..=32). Cells are indexed by physical shire number, so this is one more than the highest launched shire, not the number of launched shires; Minions in shires at or beyond it do not write.