Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao1Han committed Oct 25, 2024
1 parent 9e6448b commit 8d9c24e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions torch/csrc/distributed/c10d/ProcessGroupXCCL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ class TORCH_API ProcessGroupXCCL : public Backend {
std::vector<std::vector<at::Tensor>>& inputTensors,
const ScatterOptions& opts = ScatterOptions()) override;

void setSequenceNumberForGroup() override;

uint64_t getSequenceNumberForGroup() override;

protected:
std::unordered_map<std::string, at::xpu::XPUStream> xcclStreamsMap_;
std::unordered_map<std::string, at::xpu::XPUEvent> xcclEventsMap_;
Expand All @@ -322,6 +326,7 @@ class TORCH_API ProcessGroupXCCL : public Backend {
bool blockingWait_ = false;
static thread_local uint64_t xcclActiveGroupCounter_;
uint64_t seqCollective_{0};
uint64_t seqP2P_{0};

private:
std::mutex kvs_mutex;
Expand Down

0 comments on commit 8d9c24e

Please sign in to comment.