Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a sync after flush cache when doing benchmark (#2503)
I'm doing some benchmarks in pytorch and I find this benchmark always record the time of flush cache kernel. I want to add a sync in each iteration before kernel start. Pytorch calls this function here: https://github.com/pytorch/pytorch/blob/main/torch/_inductor/runtime/benchmarking.py#L176
- Loading branch information