trunk/4e561321b85d0c6357b46a379db9d92be0ba441a: [MPS] Make event synchronization and timing reliable (#196395)
- PyTorch: 767 events in the last 90 days
- PyTorch: 757th Release in the last 90 days
- Previous: earlier the same day · ciflow/trunk/189160
What happened
Human reviewer note: These issues were discovered while enabling Autotuning in Helion Metal backend using MPSEvents to record kernel durations, instead of relying on host timestamps. Problem MPS events could fail in two user-visible ways. First, synchronizing a timing event and then measuring it could hang: start . record () out = x + y end . record () end . synchronize () start . elapsed_time ( end ) # could wait f…
Summary assembled by rule from the sources below