Skip to content

Commit deb07d3

Browse files
authored
Revert "[DEBUG] Revert "Enable SPV_INTEL_fp_fast_math_mode (#4058)"(#4473)" (#4576)
This reverts commit 38a1984. Known cases of impact on accuracy of the following models: detectron2 and doctr_reco_predictor from #4412 on PVC and LayoutLMForSequenceClassification from #4509 on ARL --------- Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 90a959d commit deb07d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/intel/triton_xpu.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ void init_triton_intel(py::module &&m) {
300300
for (Instruction &inst : instructions(func)) {
301301
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
302302
FastMathFlags FMF;
303-
// Allow contract when default fp fusion is enabled.
304-
if ((enableFpFusion.has_value() && enableFpFusion.value()) &&
303+
// Default to allow contract when default fp fusion is not disabled.
304+
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
305305
!fastMath.has_value()) {
306306
if (op->getOpcode() == Instruction::FAdd ||
307307
op->getOpcode() == Instruction::FMul)

0 commit comments

Comments
 (0)