File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
backend/flagtree_backend_specialization/include
triton/Conversion/TritonGPUToLLVM
include/triton/Conversion/TritonGPUToLLVM Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11#include "triton/Analysis/iluvatar_AxisInfo.h"
22#include "triton/Analysis/iluvatar_Membar.h"
33#include "triton/Analysis/iluvatar_Utility.h"
4+ #include "triton/Conversion/TritonGPUToLLVM/iluvatar_ElementwiseOpToLLVMBase.h"
Original file line number Diff line number Diff line change 1+ #ifndef ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_ELEMENTWISE_OP_H
2+ #define ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_ELEMENTWISE_OP_H
3+
4+ #define FLAGTREE_SPEC_ElementwiseOpConversionBase_maybeDeduplicate
5+ #define FLAGTREE_SPEC_ElementwiseOpConversionBase_matchAndRewrite
6+
7+ #endif // ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_ELEMENTWISE_OP_H
Original file line number Diff line number Diff line change @@ -102,12 +102,14 @@ class ElementwiseOpConversionBase : public ConvertOpToLLVMPattern<SourceOp> {
102102 // test_core::test_fp8_dot_acc
103103 return resultVals;
104104 }
105+ #ifdef FLAGTREE_SPEC_ElementwiseOpConversionBase_maybeDeduplicate
105106 if (isa<IluvatarMmaEncodingAttr, DotOperandEncodingAttr>(baseEncoding)) {
106107 // TODO: this logic seems incorrect for mma layout. Skip for now.
107108 // The following test crashes and some other miscompile:
108109 // test_core::test_fp8_dot_acc
109110 return resultVals;
110111 }
112+ #endif
111113
112114 SmallVector<unsigned > elemsPerThread = getElemsPerThread (rtType);
113115 int rank = elemsPerThread.size ();
@@ -188,7 +190,7 @@ class ElementwiseOpConversionBase : public ConvertOpToLLVMPattern<SourceOp> {
188190 // element type
189191 auto resultElementTy = getElementTypeOrSelf (resultTy);
190192 Type elemTy = this ->getTypeConverter ()->convertType (resultElementTy);
191- #ifdef __ILUVATAR__
193+ #ifdef FLAGTREE_SPEC_ElementwiseOpConversionBase_matchAndRewrite
192194 auto srcType = this ->getTypeConverter ()->convertType (resultTy);
193195 if (auto structTy = dyn_cast<LLVM::LLVMStructType>(srcType))
194196 elemTy = structTy.getBody ()[0 ];
You can’t perform that action at this time.
0 commit comments