Skip to content

Commit

Permalink
Merge commit '85c7e15cc2b81f42a6baea850cc802cd47fb5a9c'
Browse files Browse the repository at this point in the history
  • Loading branch information
whitneywhtsang committed Jun 8, 2024
2 parents e2d00da + 85c7e15 commit 7a38e94
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/triton/Dialect/Triton/IR/Traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DotLike : public TraitBase<ConcreteType, DotLike> {
return op->emitOpError("expected 3 operands");
auto aTy = cast<TensorOrMemDesc>(op->getOperand(0).getType());
auto bTy = cast<TensorOrMemDesc>(op->getOperand(1).getType());
auto cTy = cast<TensorType>(op->getOperand(2).getType());
auto cTy = cast<TensorOrMemDesc>(op->getOperand(2).getType());
auto aShape = aTy.getShape();
auto bShape = bTy.getShape();
auto cShape = cTy.getShape();
Expand Down
5 changes: 0 additions & 5 deletions lib/Dialect/TritonGPU/Transforms/OptimizeDotOperands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,6 @@ class FuseTransHopper : public OpRewritePattern<LocalAllocOp> {
return failure();

auto dot = *allocOp->getUsers().begin();
auto dotEnc = dyn_cast<NvidiaMmaEncodingAttr>(
cast<RankedTensorType>(dot->getResult(0).getType()).getEncoding());
if (!dotEnc || dotEnc.getVersionMajor() != 3)
return failure();

if (!allocOp.getSrc())
return failure();

Expand Down
Loading

0 comments on commit 7a38e94

Please sign in to comment.