add_binary_tile
-
void ckernel::add_binary_tile_init()
-
template<ckernel::DstRoundingMode dst_rounding_mode = ckernel::DstRoundingMode::Default, bool is_fp32_dest_acc_en = DST_ACCUM_MODE, int ITERATIONS = 8>
void ckernel::add_binary_tile(uint32_t idst0, uint32_t idst1, uint32_t odst, VectorMode vector_mode = VectorMode::RC)
-
- Template Parameters:
-
dst_rounding_modeControls bf16 narrowing for the result. Default truncates (native SFPSTORE behavior); NearestEven applies IEEE 754 round-to-nearest-even in software before the store. Ignored when fp32 DEST accumulation is enabled. Note: in WH and BH, mul_binary_tile and div_binary_tile apply RNE rounding when narrowing to bf16. Kept as the first template parameter for source compatibility with add_binary_tile<DstRoundingMode::…>(…).
is_fp32_dest_acc_enEnables fp32 DEST accumulation. Defaults to DST_ACCUM_MODE.
ITERATIONS4-row groups per visited face (1..8, default 8 = the whole face): iteration k writes face rows 4*(k/2)..4*(k/2)+3 of one column parity (even columns for even k, odd for odd k), so 2 under VectorMode::R is rows 0..3 of all 32 columns. The body advances the DEST counter per iteration and the vector-mode loop re-bases every face on the CR counter, so a partial count composes with any vector mode. Fixed at 8 on Quasar.
- Parameters:
-
vector_modeThe faces to visit: RC (default) all four, R faces 0 and 1, C faces 0 and 2. The elements outside the visited faces and iterations keep their contents.