From e85c26816e3dacf7244cc0d4f5abe1914f79fe66 Mon Sep 17 00:00:00 2001 From: hanchao Date: Thu, 12 Sep 2024 04:54:33 +0000 Subject: [PATCH] update --- torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp | 5 ----- torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp b/torch/csrc/distributed/c10d/ProcessGroupXCCL.cpp index ac36fddf80ac4a..ce482a97952c34 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 75f2d944bf72a7..25f3a1653a0c45 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