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

[fleet_executor] handle empty addr for single card train #37150

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

FeixLiu
Copy link
Contributor

@FeixLiu FeixLiu commented Nov 12, 2021

PR types

Others

PR changes

Others

Describe

handle empty addr for single card train

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -125,6 +129,10 @@ bool MessageBus::IsSameRank(int64_t src_id, int64_t dst_id) {
dst_rank, interceptor_id_to_rank_.end(),
platform::errors::NotFound(
"Cannot find rank for dst interceptor id %lld. Init error.", dst_id));
if (addr_ == "") {
Copy link
Contributor

Choose a reason for hiding this comment

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

可以优化一下,应该不需要判断addr是否相同,直接判断src_rank == dst_rank就行

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO:
1.Remove the src_id's ip check, or mote to other place.
2.Remove this check since it does the same thing with line 147.

@FeixLiu FeixLiu merged commit 2c7870e into PaddlePaddle:develop Nov 12, 2021
@FeixLiu FeixLiu deleted the handle_empty_addr branch November 12, 2021 08:00
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