trunk/2362f26442c3f226c26e2b52303485c3ed278d87: Extend accelerator graph-capture health check beyond CUDA/XPU (#194362)
- PyTorch: 135 events in the last 90 days
- PyTorch: 134th Release in the last 90 days
- Previous: earlier the same day · trunk/926a5451a8eb984d35c4e6b17543aa8e9ad76d7f: Label tests that should run on CuTeDSL or B200 appropriately (#193606)
What happened
Summary _accelerator_graph_capture_health_check() gated its whole body behind if accelerator and accelerator.type in {"cuda", "xpu"}: , but everything inside that block is already backend-agnostic: torch.accelerator.current_stream().is_capturing() and accelerator.type.upper() in the warning/error messages both work for any accelerator already. That gate traces back to #180453 , which modernized this function's inter…
Summary assembled by rule from the sources below