pytc.solver.bug_helper.get_counted¶
- pytc.solver.bug_helper.get_counted(a)[source]¶
device_get, timed and counted – AFTER the producer has finished.
Several callers pass a fresh asynchronous GEMM output. Timing device_get on such a value measures the kernel wait plus the copy, so get_s absorbs real compute and compute_s = iteration_s - transfer_s subtracts it twice. Synchronise first: the wait stays inside the enclosing phase wall, where it belongs, and only the D->H copy is charged to transfer.