TOOLS: matrix generator shuffle columns#1251
Conversation
f3382cd to
f7b3da2
Compare
f7b3da2 to
b212aa0
Compare
|
| Filename | Overview |
|---|---|
| tools/perf/generator/ucc_pt_generator_traffic_matrix.cc | Core shuffle logic: adds column-swap per iteration in next(), updates get_dst_count_max() for shuffle case, and wires current_counts throughout — mostly correct, but note first-iteration-after-reset always uses unshuffled base counts regardless of shuffle flag |
| tools/perf/generator/ucc_pt_generator.h | Adds shuffle field and base_counts/current_counts members, and updates constructor signature — changes are correct and well-scoped |
| tools/perf/ucc_pt_config.cc | Adds shuffle parameter parsing with 0/1 validation and default of 0; updates help text — clean and correct |
| tools/perf/ucc_pt_benchmark.cc | Passes shuffle config field to generator constructor — trivial, correct |
| tools/perf/ucc_pt_config.h | Adds shuffle int field to ucc_pt_gen_traffic_matrix_config struct — correct |
Reviews (11): Last reviewed commit: "TOOLS: matrix generator shuffle columns" | Re-trigger Greptile
Additional Comments (1)
When |
Additional Comments (2)
When This causes src_counts and dst_counts to be set up with the wrong values - they'll reflect the base matrix instead of the shuffled matrix, breaking the entire shuffle feature and causing incorrect ALLTOALLV communication patterns.
The function Using the wrong matrix will cause the benchmark to make incorrect decisions about iteration counts, potentially using the wrong warmup/iteration settings for the actual data being transferred. |
11659b5 to
67b32f7
Compare
Additional Comments (2)
When This causes
When |
e5cab7c to
48e54af
Compare
48e54af to
7809f5e
Compare
7809f5e to
ac96a00
Compare
There was a problem hiding this comment.
Additional Comments (1)
-
tools/perf/generator/ucc_pt_generator_traffic_matrix.cc, line 441-456 (link)logic:
get_src_count_max()doesn't account for shuffle mode likeget_dst_count_max()does. When shuffle is enabled, this function should iterate over all rows (not justpattern_counts) to find the maximum source count across all possible column shuffles.Currently this returns the max from
pattern_countswhich only has one pattern, potentially underestimating buffer size when shuffle=1.
5 files reviewed, 1 comment
shuffling columns doesn't change row sums |
ac96a00 to
5cba7be
Compare
5cba7be to
e0e9f4f
Compare
|
/build |
e0e9f4f to
0537158
Compare
|
/build |
|
/build |
0537158 to
10c9128
Compare
|
/build |
|
Tip: Greploop — Automatically fix all review issues by running Use the Greptile plugin for Claude Code to query reviews, search comments, and manage custom context directly from your terminal. |
What
Add config option to shuffle matrix columns each iteration in matrix generator