Skip to content

Commit

Permalink
Fix 10bit mantissa rounding flag in packer (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjogoTT authored Aug 20, 2024
1 parent 955954c commit 8092e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/inc/cpack_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ namespace ckernel::packer
dest_rd_ctrl.f.PCK_DEST_RD_CTRL_Read_unsigned = 1;
}
//Round to 10 bit mantissa from fp32 dest
if(is_fp32_dest_acc_en && (pack_src_format!=(uint)DataFormat::Float32)) {
if(is_fp32_dest_acc_en && (pack_output_src_format == (uint)DataFormat::Float16)) {
dest_rd_ctrl.f.PCK_DEST_RD_CTRL_Round_10b_mant = 1;
}
cfg_reg_rmw_tensix<PCK_DEST_RD_CTRL_Read_32b_data_ADDR32,
Expand Down

0 comments on commit 8092e02

Please sign in to comment.