diff --git a/third_party/intel/triton_xpu.cc b/third_party/intel/triton_xpu.cc index 1aeae8f4d3..a8167b5810 100644 --- a/third_party/intel/triton_xpu.cc +++ b/third_party/intel/triton_xpu.cc @@ -300,8 +300,8 @@ void init_triton_intel(py::module &&m) { for (Instruction &inst : instructions(func)) { if (auto *op = dyn_cast(&inst)) { FastMathFlags FMF; - // Allow contract when default fp fusion is enabled. - if ((enableFpFusion.has_value() && enableFpFusion.value()) && + // Default to allow contract when default fp fusion is not disabled. + if ((!enableFpFusion.has_value() || enableFpFusion.value()) && !fastMath.has_value()) { if (op->getOpcode() == Instruction::FAdd || op->getOpcode() == Instruction::FMul)