~/talk

torch.accelerator: A Unified, Device-Agnostic Runtime API for Stream-Based Accelerators

links:none on file
slides:none on file

Proposal introduces a unified, device-agnostic runtime in PyTorch 2.6 that maps one-to-one to existing device APIs so code needs minimal changes, with a C++ counterpart and a new query torch.accelerator.current_accelerator. Backends register via DeviceGuardImplInterface, streams and events become polymorphic through stream/event base classes, and device/stream guards reflect each other. Supports CUDA, XPU, MPS, HPU and private accelerators under the single-accelerator-per-host assumption; memory APIs remain incomplete and a unified allocator and test generalization are planned (PR 132204).

AI-written summary · about

  1. 0:00Introduction to API
  2. 0:22Challenges and vision
  3. 5:48New accelerator API
  4. 7:47Runtime component abstraction
  5. 10:24Design philosophy and evolution
  6. 16:38Future work and improvements
  7. 17:27Example and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.