How the core charges barrier synchronization: amendment
Status: amends the registration before any capture under it. It corrects one statement of fact, found while implementing the test. The new points, the gate and the pass rule are unchanged.
The correction
The registration says that the microbenchmarks of fixed_sync_ns, stage_sync_overhead_ns and sync_stage_loop have one barrier per step. In the source (microbench/src/m2_kernels.cuh):
fixed_sync_empty_kerneland bothstage_overheadkernels have one__syncthreads()per step.sync_stage_loop_kernelhas twobar.syncper step: one after the stage is loaded and one after the MMA chain.
What follows
- (a) The regression check still holds, for another reason. The registration's check is that the form leaves the existing microbenchmarks' predictions unchanged. It still does, but not because those kernels have one barrier per step.
scripts/recheck_mechanisms.pybuilds their kernel IR without a loop barrier op, carrying onlyresources.barriers. So the form reads n = 0 and charges nothing extra, forsync_stage_looptoo. - (b)
sync_stage_loopwith its real barrier count is a description only. If the IR of those points carried their two barriers per step, the form would charge each step one more barrier. Those points are in the profile's basis and their re-check errors have been seen, so this would be a post-hoc description, not a test, and nothing is judged on it. - The re-check's IR does not match the real kernels. The re-check's IR carries no loop barrier op, while
sync_stage_loop_kernelhas two barriers per step and the other two kernels one. This is a fact about the re-check. Whether its IR should carry the real barrier counts is a separate question, not changed here.
The new barrier-pipeline points, the gate, the pass rule and the expected effect on real kernels are as registered. Their B = 2 points have the structure of sync_stage_loop_kernel.