Skip to content

Commit e892f32

Browse files
authored
[mlir][nvgpu] Allow TMA's last dim to be non-128B without swizzling (#81499)
Allow TMA's last dimension to be non-128B when swizzling mode is not set. Test `tma_load_64x8_8x128_noswizzle.mlir` is failing due to the verifier. This PR will fix that
1 parent 87d7711 commit e892f32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ std::optional<InFlightDiagnostic> verifyTmaDescriptorWithMemref(
362362
<< kMaxTMADimension << " but it is " << dim;
363363
}
364364
}
365-
if (descMemref.getRank() > 1) {
365+
if (descMemref.getRank() > 1 &&
366+
descType.getSwizzle() != TensorMapSwizzleKind::SWIZZLE_NONE) {
366367
unsigned lastDimensionByte =
367368
descMemref.getElementTypeBitWidth() * descMemref.getShape().back() / 8;
368369
if (lastDimensionByte != kMaxTMALastdimByte)

0 commit comments

Comments
 (0)