Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/xccl/ProcessGroupXCCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,14 @@ ProcessGroupXCCL::ProcessGroupXCCL(
c10::intrusive_ptr<Options> options)
: Backend(rank, size),
store_(store),
Copy link
Contributor

@guangyey guangyey Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use std::move here?

options_(std::move(options)),
xcclCommCounter_(0),
local_id_(process_group_id++) {
local_id_(process_group_id++),
options_(std::move(options)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I know if the order of options_ doesn't matter here, I guess yes.

this->setGroupUid(options_->group_name);
logPrefix_ = createLogPrefix();
blockingWait_ = getCvarBool(TORCH_XCCL_BLOCKING_WAIT, false);
traceBufferSize_ = getCvarInt({"TORCH_FR_BUFFER_SIZE"}, 2000);

this->setGroupUid(options_->group_name);
// In PGNCCL, the pg ranks are recorded on comm setup in each op, but we just
// do it here.
const auto XcclVersion = getXcclVersion();
Expand Down
Loading