viable/strict/1791489787: [c10d] Reuse workers for backend point-to-point tests (#198157)
- PyTorch: 2059 events in the last 90 days
- PyTorch: 2030th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1791474920
What happened
Each test_c10d_p2p test spawns new rank processes, so worker startup dominates the suite. Move the shared helpers ( _peers , _tensor , _test_send_recv ) into P2PTestMixin and run four P2P tests on C10dBackendTestContinuous , which re-creates the process group per test. test_async_work_lifetime drops unfinished send work, so it moves to AbstractIsolatedP2PTest and keeps fresh processes; its ID becomes {Backend}Isolat…
Summary assembled by rule from the sources below