Skip to content

Commit d299f9c

Browse files
committed
Update condition for setAllowContract
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent ae324ee commit d299f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/intel/triton_xpu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ void init_triton_intel(py::module &&m) {
296296
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
297297
FastMathFlags FMF;
298298
// Default to allow contract when default fp fusion is not disabled.
299-
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
299+
if ((enableFpFusion.has_value() && enableFpFusion.value()) &&
300300
!fastMath.has_value()) {
301301
if (op->getOpcode() == Instruction::FAdd ||
302302
op->getOpcode() == Instruction::FMul)

0 commit comments

Comments
 (0)