Skip to content

Commit 891c30d

Browse files
fix create_descriptor.
1 parent 6882a5c commit 891c30d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mlir/test/Examples/NVGPU/tools/nvdsl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ def create_descriptor(self, device_ptr):
143143
),
144144
device_ptr,
145145
)
146+
box_static_dim = [MLIR_DYNAMIC] * len(self.tma_box_shape)
146147
self.tma_descriptor = nvgpu.TmaCreateDescriptorOp(
147-
tma_descriptor_ty, device_unranked_memref, map(const, self.tma_box_shape)
148+
tma_descriptor_ty, device_unranked_memref, map(const, self.tma_box_shape), box_static_dim
148149
)
149150
return self.tma_descriptor.result
150151

mlir/test/Integration/GPU/CUDA/sm90/python/tools/matmulBuilder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def tma_descriptor_op(self, device_ptr):
6464
),
6565
device_ptr,
6666
)
67+
box_static_dim = [MLIR_DYNAMIC] * len(self.tma_box_shape)
6768
tma_descriptor_op = nvgpu.TmaCreateDescriptorOp(
68-
tma_descriptor_ty, device_unranked_memref, map(c, self.tma_box_shape)
69+
tma_descriptor_ty, device_unranked_memref, map(c, self.tma_box_shape), box_static_dim
6970
)
7071
return tma_descriptor_op.result
7172

0 commit comments

Comments
 (0)