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 22a9821 commit 0ca38b7Copy full SHA for 0ca38b7
third_party/intel/triton_xpu.cc
@@ -287,9 +287,10 @@ void init_triton_intel(py::module &&m) {
287
FastMathFlags FMF;
288
// Default to allow contract when default fp fusion is not disabled.
289
if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
290
- !fastMath.has_value())
291
- FMF.setAllowContract(true);
292
- else if (fastMath.has_value() && fastMath.value())
+ !fastMath.has_value()) {
+ if (isa<AddOperator>(op) || isa<MulOperator>(op))
+ FMF.setAllowContract(true);
293
+ } else if (fastMath.has_value() && fastMath.value())
294
FMF.setFast(true);
295
inst.setFastMathFlags(FMF);
296
}
0 commit comments