-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add Gloo Gather Function #52334
Add Gloo Gather Function #52334
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
lgtm
task.wait() | ||
|
||
test_gather(0) | ||
test_gather(1) |
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.
You assume that this ut would only run when world size is 2. If world size is not 2, this ut does not work.
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.
Done
@@ -61,8 +61,6 @@ class SendRecvOptions { | |||
|
|||
friend void send_recv(SendRecvOptions*); | |||
}; | |||
|
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.
You do not need to rename this file. Rename it back.
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.
Done
const phi::DenseTensor& in_tensor, | ||
const GatherOptions& opts, | ||
bool sync_op, | ||
bool use_calc_stream) { |
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.
Throw exception when use_calc_stream
is 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.
Done
@@ -210,6 +216,11 @@ class ProcessGroupGloo : public ProcessGroupWithoutStream { | |||
return platform::DeviceContextPool::Instance().Get(place); | |||
} | |||
|
|||
phi::DeviceContext* GetDeviceContext(const Place& place, |
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.
Do not need this method.
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.
An exception will be thrown if this method is not used.
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 add an exception when use_calc_stream is true.
PR types
New features
PR changes
OPs
Describe
Add Gloo Gather Function