-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] add p2p op #1204
base: chao/xccl2
Are you sure you want to change the base?
[wip] add p2p op #1204
Conversation
work->future_->markCompleted(at::IValue(*work->outputs_)); | ||
return work; | ||
} else { | ||
at::xpu::OptionalXPUGuard gpuGuard(device); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some comments to when work
will be constructed in coalesced collective.
src/xccl/ProcessGroupXCCL.cpp
Outdated
TORCH_CHECK(tensors.size() == 1, MULTI_DEVICE_ERROR_MSG); | ||
// @lint-ignore CLANGTIDY | ||
auto tensor = tensors.back(); | ||
check_xpu_single_tensor(tensor, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name is already refined in your last PR. Please update.
(outputSplitsEqual ? outLen : outputSplitSizes[i] * outLen); | ||
} | ||
auto xcclDataType = getXcclDataType(output.scalar_type()); | ||
ccl::alltoallv( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alltoallv
will not exsit in new oneCCL API. Please use send
/recv
pair for alltoallv
.
src/xccl/ProcessGroupXCCL.cpp
Outdated
auto device = outputTensors[0].device(); | ||
int64_t total_numel = 0; | ||
for (const auto r : c10::irange(outputTensors.size())) { | ||
check_xpu_single_tensor(outputTensors[r], true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refine the name.
No description provided.