DEBUG-ONLY: limit ARDBG stack logging to ONE_SHOT_PUSH calls (volume control)

This commit is contained in:
2026-10-13 16:01:18 +08:00
parent 0054c5b8fe
commit f3ac513d92
@@ -396,7 +396,7 @@ class CustomAllReduceV2:
use_graph,
torch.cuda.is_current_stream_capturing(),
)
if _AR_SEQ_DEBUG >= 2:
if _AR_SEQ_DEBUG >= 2 and getattr(algo, "name", algo) == "ONE_SHOT_PUSH":
logger.info(
"[ARDBG] stack rank=%s seq=%d\n%s",
self._dbg_rank,