Skip to content

Commit 6ffa5d3

Browse files
committed
Document that the fused dispatch writes total_recv_tokens from its expert layout
Signed-off-by: Phuong Nguyen <phuonguyen@nvidia.com>
1 parent d34a1d1 commit 6ffa5d3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • transformer_engine/common/include/transformer_engine

‎transformer_engine/common/include/transformer_engine/ep_gemm.h‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ extern "C" {
8686
* int32 elements. Capacity mode writes it; eager mode builds
8787
* it from recv_tokens_per_expert. The last element is the
8888
* recv total; the per-expert counts are its diffs.
89-
* \param[out] total_recv_tokens [1] int32 recv total before any overflow drop. The routing
90-
* prepare writes it; null when the dispatch writes
91-
* expert_token_offsets, where expert_token_offsets[-1] is
92-
* the padded total of the kept rows.
89+
* \param[out] total_recv_tokens [1] int32 recv total before any overflow drop, or null.
90+
* The routing prepare writes it; when the dispatch writes
91+
* expert_token_offsets instead (no drops), it is
92+
* expert_token_offsets[-1], the padded total of the kept
93+
* rows.
9394
* \param[in,out] workspace uint8 scratch, nvte_ep_overlap_workspace_size bytes.
9495
* \param[in] activation Activation between the grouped GEMMs; only
9596
* NVTE_Activation_Type::SWIGLU is supported.

0 commit comments

Comments
 (0)