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

[PE] Fix bugs of GraphExecutionOptimizer while using NoReduce strategy #49081

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ def _setup_nccl_op(self, startup_program, main_program, build_strategy):
if trainer_id == 0 and not paddle.is_compiled_with_npu():
wait_server_ready(other_trainers)

if (
build_strategy.reduce_strategy
== BuildStrategy.ReduceStrategy._NoReduce
):
return

if core.is_compiled_with_cuda():
comm_id_var = startup_program.global_block().create_var(
name="NCCLID", persistable=True, type=core.VarDesc.VarType.RAW
Expand Down