From 350cd82a56d2159dcfdc005b7ef6bb671bef8ee4 Mon Sep 17 00:00:00 2001 From: Roc <30228238+sljlp@users.noreply.github.com> Date: Thu, 9 Feb 2023 17:03:44 +0800 Subject: [PATCH] [kunlun] support async send/recv via group (#50329) Co-authored-by: zhangxiaoci --- paddle/fluid/pybind/distributed_py.cc | 4 +++- .../fleet/meta_parallel/pp_utils/p2p_communication.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/distributed_py.cc b/paddle/fluid/pybind/distributed_py.cc index cc06861d8d0..0b4a14d51b0 100644 --- a/paddle/fluid/pybind/distributed_py.cc +++ b/paddle/fluid/pybind/distributed_py.cc @@ -1251,7 +1251,9 @@ void BindDistributed(py::module *m) { py::arg("rank"), py::arg("world_size"), py::arg("group_id") = 0, - py::call_guard()); + py::call_guard()) + .def_static("group_start", distributed::ProcessGroupBKCL::GroupStart) + .def_static("group_end", distributed::ProcessGroupBKCL::GroupEnd); #endif py::class_