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] Parse rank_to_ip map on cpp side and start message bus. #37126

Merged
merged 9 commits into from
Nov 12, 2021

Conversation

FeixLiu
Copy link
Contributor

@FeixLiu FeixLiu commented Nov 11, 2021

PR types

Others

PR changes

Others

Describe

Parse rank_to_ip map on cpp side and start message bus

@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

}
}
PADDLE_ENFORCE_NE(
addr, "",
Copy link
Contributor

Choose a reason for hiding this comment

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

单卡可以保留成空

std::string ip_port = rank_info.ip_port();
ss << rank << "\t->\t" << ip_port << "\n";
// TODO(Yuang): replace the first 'rank' with real interceptor id
interceptor_id_to_rank.insert(std::make_pair(rank, rank));
Copy link
Contributor

@wangxicoding wangxicoding Nov 11, 2021

Choose a reason for hiding this comment

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

message_bus我觉得逻辑应该只保留rank_to_addr的,interceptor_id_to_rank的逻辑应该给carrier,解耦开。这个可以之后再讨论修改

@FeixLiu FeixLiu merged commit 6bf208c into PaddlePaddle:develop Nov 12, 2021
@FeixLiu FeixLiu deleted the parse_ip_on_cpp_side branch November 12, 2021 06:26
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