Skip to content

Commit 73a2fd4

Browse files
authored
[mlir][xegpu] Patch dynamic descriptor creation (#93580)
fixes the bug in XeGPU's `CreateNdDescOp` tensor creation with dynamic offset and strides.
1 parent 21711f8 commit 73a2fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
110110

111111
dispatchIndexOpFoldResults(offsets, dynamicOffsets, staticOffsets);
112112
dispatchIndexOpFoldResults(shape, dynamicShape, staticShape);
113-
dispatchIndexOpFoldResults(strides, dynamicStrides, staticOffsets);
113+
dispatchIndexOpFoldResults(strides, dynamicStrides, staticStrides);
114114

115115
auto staticOffsetsAttr = builder.getDenseI64ArrayAttr(staticOffsets);
116116
auto staticShapeAttr = builder.getDenseI64ArrayAttr(staticShape);

0 commit comments

Comments
 (0)