Skip to content

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.

@FeixLiu FeixLiu requested a review from wangxicoding November 11, 2021 09:44
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