From cbca484a7ac06e0565cad824e675c40ad95cf74c Mon Sep 17 00:00:00 2001 From: Radomir Djogo Date: Fri, 20 Sep 2024 19:38:07 +0000 Subject: [PATCH] #11756: update condition for fp32 precision flag --- tt_metal/jit_build/data_format.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tt_metal/jit_build/data_format.cpp b/tt_metal/jit_build/data_format.cpp index c2b07761bd2e..b6fbd865b8b9 100644 --- a/tt_metal/jit_build/data_format.cpp +++ b/tt_metal/jit_build/data_format.cpp @@ -264,7 +264,7 @@ std::vector get_unpack_dst_formats( } else if (int_fpu_en) { unpack_dst_format.push_back(src_format); } else { - if (!preserve_fp32_precision.empty() && en_unpack_tf32 && preserve_fp32_precision[i] != PreserveFP32Target::Disabled) { + if (input_formats[i] == DataFormat::Float32 && !preserve_fp32_precision.empty() && preserve_fp32_precision[i] != PreserveFP32Target::Disabled) { TT_FATAL(preserve_fp32_precision[i] == PreserveFP32Target::DEST, "preserve_fp32_precision is only available when unpack target is DEST register"); unpack_dst_format.push_back(get_single_unpack_dst_format(input_formats[i], pack_format, DataFormat::Float32)); } else { @@ -273,7 +273,7 @@ std::vector get_unpack_dst_formats( } } for (int i=0 ; i get_unpack_dst_formats( } } for (int i=0 ; i