mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 06:31:50 +08:00
[mlir][xegpu] Patch dynamic descriptor creation (#93580)
fixes the bug in XeGPU's `CreateNdDescOp` tensor creation with dynamic offset and strides.
This commit is contained in:
@@ -110,7 +110,7 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
|
||||
|
||||
dispatchIndexOpFoldResults(offsets, dynamicOffsets, staticOffsets);
|
||||
dispatchIndexOpFoldResults(shape, dynamicShape, staticShape);
|
||||
dispatchIndexOpFoldResults(strides, dynamicStrides, staticOffsets);
|
||||
dispatchIndexOpFoldResults(strides, dynamicStrides, staticStrides);
|
||||
|
||||
auto staticOffsetsAttr = builder.getDenseI64ArrayAttr(staticOffsets);
|
||||
auto staticShapeAttr = builder.getDenseI64ArrayAttr(staticShape);
|
||||
|
||||
Reference in New Issue
Block a user