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 4061fb7 commit e1a432dCopy full SHA for e1a432d
third_party/intel/triton_xpu.cc
@@ -304,7 +304,8 @@ void init_triton_intel(py::module &&m) {
304
// Default to allow contract when default fp fusion is not disabled.
305
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
306
!fastMath.has_value()) {
307
- if (isa<AddOperator>(op) || isa<MulOperator>(op))
+ if (op->getOpcode() == Instruction::FAdd ||
308
+ op->getOpcode() == Instruction::FMul)
309
FMF.setAllowContract(true);
310
} else if (fastMath.has_value() && fastMath.value())
311
FMF.setFast(true);
0 commit comments