Fix MMA promotion interval assertions (#1641)

This commit is contained in:
Chenggang Zhao 2024-09-17 00:38:42 +08:00 committed by GitHub
parent 9f68995de5
commit 1ebda1ccef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,8 +246,8 @@ struct CollectiveMma<
implementable = implementable && cutlass::detail::check_alignment<min_tma_aligned_elements_A>(cute::make_shape(M,K,L), StrideA{});
constexpr int min_tma_aligned_elements_B = tma_alignment_bits / cutlass::sizeof_bits<ElementB>::value;
implementable = implementable && cutlass::detail::check_alignment<min_tma_aligned_elements_B>(cute::make_shape(N,K,L), StrideB{});
/* MMA promotion interval should be a multiple of 4, since each mainloop iteration would issue 4 MMA instructions. */
implementable = implementable && (args.mma_promotion_interval % 4 == 0);
/* MMA promotion interval should be a multiple of the number of MMA instructions issued by each mainloop iteration. */
implementable = implementable && (args.mma_promotion_interval % (size<2>(TileShape{})() / TiledMma().template tile_size_mnk<2>()()) == 0);
if (!implementable) {
CUTLASS_TRACE_HOST(" CAN IMPLEMENT: Problem Size doesn't meet the minimum alignment requirements for TMA.\n");