From 47bc7d232edd7d7974938ec539a5661e689f5b53 Mon Sep 17 00:00:00 2001 From: Radomir Djogo <159184120+rdjogoTT@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:23:27 -0400 Subject: [PATCH] remove unpack reconfig uint8 code (#38) --- llk_lib/llk_unpack_common.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/llk_lib/llk_unpack_common.h b/llk_lib/llk_unpack_common.h index ac514ea..15a384f 100644 --- a/llk_lib/llk_unpack_common.h +++ b/llk_lib/llk_unpack_common.h @@ -82,16 +82,6 @@ inline void _llk_unpack_config_tile_dim_srcb_impl_(const std::uint32_t face_r_di inline void _llk_unpack_reconfig_data_format_srca_impl_(const std::uint32_t unpack_src_format, const std::uint32_t unpack_dst_format, const std::uint32_t tile_size) { - alu_config_u alu_payload = {.val = 0}; - alu_payload.f.ALU_FORMAT_SPEC_REG0_SrcA = unpack_dst_format; - if ((uint)unpack_src_format == (uint)DataFormat::UInt8) { - alu_payload.f.ALU_FORMAT_SPEC_REG0_SrcAUnsigned = 1; - } - alu_payload.f.ALU_ACC_CTRL_INT8_math_enabled = ((uint)(unpack_dst_format & 0xF) == (uint)DataFormat::Int8) || - ((uint)unpack_dst_format == (uint)DataFormat::Int32); - constexpr uint alu_mask = ALU_FORMAT_SPEC_REG0_SrcA_MASK | ALU_FORMAT_SPEC_REG0_SrcAUnsigned_MASK | ALU_ACC_CTRL_INT8_math_enabled_MASK; - cfg_reg_rmw_tensix(alu_payload.val); - cfg_reg_rmw_tensix(unpack_src_format); cfg_reg_rmw_tensix(unpack_dst_format); TT_SETDMAREG(0, LOWER_HALFWORD(tile_size), 0, LO_16(p_gpr_unpack::TILE_SIZE_A)); // update gpr which holds tile size A