Skip to content

Commit

Permalink
[AccelerateMatmul] Sync from upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Whitney Tsang <[email protected]>
  • Loading branch information
whitneywhtsang committed Jan 11, 2025
1 parent 5bab216 commit 5f5feb0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ class DecomposeScaledBlocked : public OpRewritePattern<tt::DotScaledOp> {
if (!scale)
return v;

return rewriter.create<ttg::UpcastMXFPOp>(v.getLoc(), v, scale, elemType);
auto retTy = triton::gpu::UpcastMXFPOp::deduceOutputType(
v, elemType, Builder(v.getContext()).getBF16Type());
return rewriter.create<ttg::UpcastMXFPOp>(v.getLoc(), retTy, v, scale,
elemType);
}
};

Expand Down

0 comments on commit 5f5feb0

Please sign in to comment.