Skip to content

Commit f4c3474

Browse files
committed
save work
1 parent 683f5cf commit f4c3474

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
192192

193193
/// Helper to drop all layout information from the TensorDesc type.
194194
TensorDescType dropLayouts() {
195-
if (getLayoutAttr() == xegpu::LayoutAttr())
195+
if (!getLayoutAttr())
196196
return *this;
197197

198198
return get(getContext(), getShape(), getElementType(), getEncoding(),

mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,8 +1507,9 @@ struct UpdateNdOffsetDistribution final : public gpu::WarpDistributionPattern {
15071507
/// Distribute a prefetch_nd op at the end of enclosing
15081508
/// `gpu.warp_execute_on_lane_0`. In case arguments for the prefetch are passed
15091509
/// through the warp op interface they would be propagated as returned values.
1510-
/// Appropriate cast ops are inserted if the distributed types does not match
1511-
/// expected xegpu SIMT types.
1510+
/// Tensor descriptor shape is not distributed because it is a uniform value
1511+
/// across all work items within the subgroup. Appropriate cast ops are inserted
1512+
/// if the distributed types does not match expected xegpu SIMT types.
15121513
///
15131514
/// Example:
15141515
///

0 commit comments

Comments
 (0)