[FRONTEND] add option to disable fp mul/add fusion (#2495)

By default, ptxas will enable fusion of mul/add to fma instructions. The
backend was also being configured unconditionally to enable this on
conversion from LLVM IR to PTX. This commit adds an option which can be
used to disable the FP fusion behavior in both locations.
This commit is contained in:
Stewart Hall
2023-10-14 12:23:30 -07:00
committed by GitHub
parent 3b6ec763d5
commit 29828fe491
8 changed files with 109 additions and 77 deletions

View File

@@ -10,7 +10,8 @@ class Module;
namespace triton {
// Translate TritonGPU IR to PTX code.
std::string translateLLVMIRToPTX(llvm::Module &module, int cc, int version);
std::string translateLLVMIRToPTX(llvm::Module &module, int cc, int version,
bool enable_fp_fusion);
} // namespace triton