Skip to content

Commit

Permalink
fix bug (PaddlePaddle#49081)
Browse files Browse the repository at this point in the history
  • Loading branch information
haohongxiang authored Dec 15, 2022
1 parent 4ab87f9 commit 2a170ff
Showing 1 changed file with 0 additions and 6 deletions.
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

0 comments on commit 2a170ff

Please sign in to comment.