← Back to events
ActiveAIRelease

trunk/4e561321b85d0c6357b46a379db9d92be0ba441a: [MPS] Make event synchronization and timing reliable (#196395)

Photo: PyTorch Releases

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

Why it's spreading

Sources