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 7a7ed0e commit 742eba0Copy full SHA for 742eba0
third_party/intel/lib/TritonIntelGPUTransforms/OptimizeBlockIOEncoding.cpp
@@ -234,7 +234,14 @@ class TritonIntelGPUOptimizeBlockIOEncodingPass
234
235
// get the MakeTensorPtr Op for the load
236
Value ptr = loadOp.getPtr();
237
- assert(isTensorPointerType(ptr.getType()) && "expecting pointer to tensor");
+ if (!isTensorPointerType(ptr.getType())) {
238
+ // TODO: support tensor of pointer loads
239
+ LLVM_DEBUG(DBGS() << "Ptr\n"
240
+ << ptr << " for Load Op:\n"
241
+ << loadOp
242
+ << "\nincompatible with Subgroup 2D Block Layout.\n");
243
+ return;
244
+ }
245
MakeTensorPtrOp makeTensorPtrOp = getMakeTensorPtrOp(ptr);
246
assert(makeTensorPtrOp &&
247
"expecting a tensor pointer parent to block io load "
0 commit comments