Skip to content

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.

@FeixLiu FeixLiu requested a review from wangxicoding November 12, 2021 02:07
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

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

2 participants