Skip to content

Commit 38a1984

Browse files
[DEBUG] Revert "Enable SPV_INTEL_fp_fast_math_mode (#4058)" (#4473)
This reverts commit 353d6ff. CI link: https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/15638597833 (passed) --------- Signed-off-by: Anatoly Myachev <[email protected]> Co-authored-by: Whitney Tsang <[email protected]>
1 parent 20bebd7 commit 38a1984

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
@@ -292,8 +292,8 @@ void init_triton_intel(py::module &&m) {
292292
for (Instruction &inst : instructions(func)) {
293293
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
294294
FastMathFlags FMF;
295-
// Default to allow contract when default fp fusion is not disabled.
296-
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
295+
// Allow contract when default fp fusion is enabled.
296+
if ((enableFpFusion.has_value() && enableFpFusion.value()) &&
297297
!fastMath.has_value()) {
298298
if (op->getOpcode() == Instruction::FAdd ||
299299
op->getOpcode() == Instruction::FMul)

0 commit comments

Comments
 (0)