Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bench/ag_gemm_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def main():
# Preserve explicit --num-intra-comm-sms from the CLI (e.g. AG_GEMM_BENCH_EXTRA
# profile runs). The per-shape loop used to force 0 here, which silently ignored
# tuned intra splits unless INTRA_OVERRIDE was populated.
cli_num_comm_sms = int(args.num_comm_sms)
cli_num_intra_comm_sms = int(args.num_intra_comm_sms)
rank = int(os.environ["RANK"])
local_rank = int(os.environ["LOCAL_RANK"])
Expand Down Expand Up @@ -149,6 +150,8 @@ def main():
if is_chief:
print(f"[ag_gemm] M={base_n}: per-shape num_comm_sms={args.num_comm_sms}",
flush=True)
else:
args.num_comm_sms = cli_num_comm_sms
if base_n in INTRA_OVERRIDE:
args.num_intra_comm_sms = INTRA_OVERRIDE[base_n]
if is_chief:
Expand Down