Skip to content
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

Open
wants to merge 5 commits into
base: chao/xccl2
Choose a base branch
from
Open

[wip] add p2p op #1204

wants to merge 5 commits into from

Conversation

Chao1Han
Copy link
Contributor

No description provided.

work->future_->markCompleted(at::IValue(*work->outputs_));
return work;
} else {
at::xpu::OptionalXPUGuard gpuGuard(device);

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.

TORCH_CHECK(tensors.size() == 1, MULTI_DEVICE_ERROR_MSG);
// @lint-ignore CLANGTIDY
auto tensor = tensors.back();
check_xpu_single_tensor(tensor, true);

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(

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.

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);

Choose a reason for hiding this comment

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

Refine the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants