We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaffba4 commit 7c8aee4Copy full SHA for 7c8aee4
third_party/intel/triton_xpu.cc
@@ -295,8 +295,8 @@ void init_triton_intel(py::module &&m) {
295
for (Instruction &inst : instructions(func)) {
296
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
297
FastMathFlags FMF;
298
- // Default to allow contract when default fp fusion is not disabled.
299
- if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
+ // Allow contract when default fp fusion is enabled.
+ if ((enableFpFusion.has_value() && enableFpFusion.value()) &&
300
!fastMath.has_value()) {
301
if (op->getOpcode() == Instruction::FAdd ||
302
op->getOpcode() == Instruction::FMul)
0 commit comments