Skip to content

Commit

Permalink
fix pitch restriction check + remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaden committed Sep 26, 2024
1 parent 8a4cab2 commit c09e10e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ struct TritonIntelGPUMaterializeBlockPointerPass
}
ArrayRef<int32_t> order = makeTensorPtrOp.getOrder();

// unsigned fastChangeDim = order[0];
if (fastChangeDim >= (rank - 2)) {

// HW 2D block read instruction only supports contiguous access.
Value fastChangeStride = strides[fastChangeDim];
LLVM_DEBUG({
Expand All @@ -89,7 +87,8 @@ struct TritonIntelGPUMaterializeBlockPointerPass
Value pitch =
strides[(fastChangeDim == rank - 1) ? rank - 2 : rank - 1];
LDBG("Pitch: " << pitch);
if (!ttgi::isDivisible(pitch, 64 / tensorType.getElementTypeBitWidth()))
if (!ttgi::isDivisible(pitch,
128 / tensorType.getElementTypeBitWidth()))
return;

loadOp->setAttr(ttgi::TritonIntelGPUDialect::getBlockIOAttrName(),
Expand Down

0 comments on commit c09e10e

Please sign in to comment.