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.
SPV_INTEL_fp_fast_math_mode
1 parent 20bebd7 commit 38a1984Copy full SHA for 38a1984
third_party/intel/triton_xpu.cc
@@ -292,8 +292,8 @@ void init_triton_intel(py::module &&m) {
292
for (Instruction &inst : instructions(func)) {
293
if (auto *op = dyn_cast<FPMathOperator>(&inst)) {
294
FastMathFlags FMF;
295
- // Default to allow contract when default fp fusion is not disabled.
296
- if ((!enableFpFusion.has_value() || enableFpFusion.value()) &&
+ // Allow contract when default fp fusion is enabled.
+ if ((enableFpFusion.has_value() && enableFpFusion.value()) &&
297
!fastMath.has_value()) {
298
if (op->getOpcode() == Instruction::FAdd ||
299
op->getOpcode() == Instruction::FMul)
0 commit comments