Skip to content

Commit 1ebda1c

Browse files
authored
Fix MMA promotion interval assertions (#1641)
1 parent 9f68995 commit 1ebda1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cutlass/gemm/collective/sm90_mma_tma_gmma_ss_warpspecialized_fp8.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ struct CollectiveMma<
246246
implementable = implementable && cutlass::detail::check_alignment<min_tma_aligned_elements_A>(cute::make_shape(M,K,L), StrideA{});
247247
constexpr int min_tma_aligned_elements_B = tma_alignment_bits / cutlass::sizeof_bits<ElementB>::value;
248248
implementable = implementable && cutlass::detail::check_alignment<min_tma_aligned_elements_B>(cute::make_shape(N,K,L), StrideB{});
249-
/* MMA promotion interval should be a multiple of 4, since each mainloop iteration would issue 4 MMA instructions. */
250-
implementable = implementable && (args.mma_promotion_interval % 4 == 0);
249+
/* MMA promotion interval should be a multiple of the number of MMA instructions issued by each mainloop iteration. */
250+
implementable = implementable && (args.mma_promotion_interval % (size<2>(TileShape{})() / TiledMma().template tile_size_mnk<2>()()) == 0);
251251

252252
if (!implementable) {
253253
CUTLASS_TRACE_HOST(" CAN IMPLEMENT: Problem Size doesn't meet the minimum alignment requirements for TMA.\n");

0 commit comments

Comments
 (0)