[Mlir-commits] [mlir] [mlir][nvgpu] Delete nvgpu dialect unused variable kMaxTMALastdimByte (NFC) (PR #155825)
Guray Ozen
llvmlistbot at llvm.org
Fri Aug 29 01:00:28 PDT 2025
================
@@ -46,8 +46,6 @@ constexpr unsigned kMaxTMATensorDimension = 5;
/// to be traversed along each of the kMaxTMATensorDimension (tensorRank)
/// dimensions, must be non-zero and less than or equal to 256.
constexpr unsigned kMaxTMADimension = 256;
-/// Last dimension of 2D+ TMA must be 128 bytes
-constexpr unsigned kMaxTMALastdimByte = 128;
----------------
grypp wrote:
do this
```
/// Last dimension of 2D+ TMA must be 128 bytes
constexpr unsigned kMaxTMALastdimByte = 16;
int lastDimBytes =
descMemref.getShape().back() * descMemref.getElementTypeBitWidth() / 8;
if (lastDimBytes % kMaxTMALastdimByte != 0) {
return op->emitError() << "the bytes in the last dimension of the tensor "
"map must be a multiple of 16";
}
```
https://github.com/llvm/llvm-project/pull/155825
More information about the Mlir-commits
mailing list