Skip to content

Commit 2d8e1d2

Browse files
committed
Update condition for setAllowContract
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 565808e commit 2d8e1d2

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
@@ -293,7 +293,7 @@ void init_triton_intel(py::module &&m) {
293293
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
294294
FastMathFlags FMF;
295295
// Default to allow contract when default fp fusion is not disabled.
296-
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
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)