File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
third_party/intel/lib/Dialect/TritonGEN/IR Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
#include " llvm/ADT/STLExtras.h"
14
14
#include < cstdint>
15
15
16
+ #include " triton/Dialect/TritonGPU/IR/Dialect.h"
17
+
16
18
using namespace mlir ;
17
19
using namespace mlir ::triton;
18
20
@@ -238,7 +240,9 @@ verify2DBlockLoadHWRestriction(TritonGEN::Matrix2DBlockLoadOp op) {
238
240
VectorType resTy = op.getRes ().getType ();
239
241
unsigned resElemTySize = resTy.getElementType ().getIntOrFloatBitWidth ();
240
242
unsigned resSize = resTy.getNumElements () * resElemTySize;
241
- constexpr unsigned subgroupSize = 16 ;
243
+ unsigned subgroupSize = triton::gpu::TritonGPUDialect::getThreadsPerWarp (
244
+ op->getParentOfType <mlir::ModuleOp>());
245
+ ;
242
246
unsigned expectedSize = op.getElemSizeInBits () * op.getTileHeight () *
243
247
op.getTileWidth () * op.getVBlocks () / subgroupSize;
244
248
if (resSize != expectedSize)
You can’t perform that action at this time.
0 commit comments