Skip to content

[bug fix] avoiding multiple initialization of gloo for fleet in dygraph mode#27706

Merged
guru4elephant merged 16 commits intoPaddlePaddle:developfrom
sandyhouse:gloo_dygraph_fleet_fix
Sep 30, 2020
Merged

[bug fix] avoiding multiple initialization of gloo for fleet in dygraph mode#27706
guru4elephant merged 16 commits intoPaddlePaddle:developfrom
sandyhouse:gloo_dygraph_fleet_fix

Conversation

@sandyhouse
Copy link

PR types

Bug fixes

PR changes

Others

Describe

avoiding multiple initialization of gloo for fleet in dygraph mode

@paddle-bot-old
Copy link

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

@sandyhouse sandyhouse closed this Sep 29, 2020
@sandyhouse sandyhouse reopened this Sep 29, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Sep 29, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Sep 29, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Sep 30, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Sep 30, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Sep 30, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Sep 30, 2020
Copy link
Member

@guru4elephant guru4elephant left a comment

Choose a reason for hiding this comment

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

LGTM, not a good design, but ok

self._collective_env()
self._role_is_generated = True
self._gloo_init()
if not paddle.fluid.framework.in_dygraph_mode():
Copy link
Member

Choose a reason for hiding this comment

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

it seems in dygraph mode, we do not need to do gloo_init, but actually it is initialized in other places. In general, this is not a good design, and should be refactored with init_parallel_env in the future.

@guru4elephant guru4elephant merged commit 742cbe6 into PaddlePaddle:develop Sep 30, 2020
@sandyhouse sandyhouse deleted the gloo_dygraph_fleet_fix branch April 25, 2021 13:35
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