Leverage TensorPipe's automatic SHM address selection (#63028)
authorLuca Wehrstedt <lcw@fb.com>
Thu, 26 Aug 2021 19:08:00 +0000 (12:08 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Aug 2021 19:15:53 +0000 (12:15 -0700)
commit48c57b9b2ef5a65dac5ef9ba2a15f742bb7d06e5
tree812ac4b2b81f9c1ff828e458c44a9dc424cd1017
parentad47fb88584ec4cc9ed6e5f01e1256d38020a1a3
Leverage TensorPipe's automatic SHM address selection (#63028)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63028

TensorPipe until now required PyTorch to come up and provide a unique identifier to use as address for the UNIX domain socket used in the SHM transport. However the Linux kernel can automatically assign an available address (like it does with IP ports), and TensorPipe now supports it, so we can remove that useless PyTorch logic.

Test Plan: CI

Reviewed By: mrshenli

Differential Revision: D30220352

fbshipit-source-id: 78e8a6ef5916b2a72df26cdc9cd367b9d083e821
torch/csrc/distributed/rpc/tensorpipe_agent.cpp