diff --git a/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp b/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp index ac36fddf80ac4..ce482a97952c3 100644 --- a/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp +++ b/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp @@ -33,11 +33,6 @@ AutoXcclGroup::AutoXcclGroup() { ccl::group_start(); } -AutoNcclGroup::AutoNcclGroup(xcclComm_t comm) { - comm_ = comm; - ccl::group_start(); -} - AutoNcclGroup::~AutoNcclGroup() noexcept(false) { ccl::group_end(); } diff --git a/torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp b/torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp index 75f2d944bf72a..25f3a1653a0c4 100644 --- a/torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp +++ b/torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp @@ -68,9 +68,7 @@ constexpr const char* XCCL_BACKEND_NAME = "xccl"; namespace { struct AutoXcclGroup { AutoXcclGroup(); - AutoXcclGroup(xcclComm_t comm); ~AutoXcclGroup() noexcept(false); - xcclComm_t comm_; }; } // namespace