Commit 9bb44a8
Bind positional prof/log_name args and cover with regression tests
timed_op previously read prof/log_name only from kwargs, so callers
that passed them positionally (e.g. dist.all_to_all(out, inp, None,
False, True, 'name')) had those values silently ignored. Bind args
and kwargs against func's signature with inspect.signature(...).
bind_partial() instead, so positional values are picked up the same
as keyword ones. This makes the earlier keyword-only ('*') marker on
broadcast_object_list/all_to_all unnecessary, so it is reverted.
The signature binding stays inside the 'if comms_logger.enabled'
guard to keep the disabled fast path at its previous cost.
Add regression tests for reading prof/log_name from positional args
and for calc_bw_log supporting broadcast_object_list/all_to_all.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jin, Youzhi <youzhi.jin@intel.com>1 parent 94ed85d commit 9bb44a8
2 files changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
241 | | - | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
382 | | - | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
0 commit comments