diff --git a/include/cutlass/barrier.h b/include/cutlass/barrier.h index 94f300add9..6f2373b6df 100644 --- a/include/cutlass/barrier.h +++ b/include/cutlass/barrier.h @@ -277,7 +277,7 @@ struct NamedBarrierManager { CUTLASS_DEVICE static void check_barrier_in_range([[maybe_unused]] uint32_t idx) { - assert((idx >= MaxNumNamedBarriers) && "Index exceeds barrier count"); + assert((idx < MaxNumNamedBarriers) && "Index exceeds barrier count"); } template