From 9160701e5e2500f111bd353414bbdaffea5c8225 Mon Sep 17 00:00:00 2001 From: haohongxiang Date: Wed, 14 Dec 2022 12:34:10 +0000 Subject: [PATCH] fix bug --- .../fleet/meta_optimizers/graph_execution_optimizer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py b/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py index fa9510aa407b0..a7610ded24a58 100644 --- a/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py +++ b/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py @@ -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