Skip to content

Commit 432d2b5

Browse files
authored
Merge pull request #8105 from qiaohaijun/patch-1
for readability
2 parents 86657db + 0231aad commit 432d2b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

paddle/scripts/cluster_train_v2/openmpi/start_mpi_train.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ PADDLE_CLUSTER_TRAIN=True
1515
env
1616

1717
# start pserver
18-
stdbuf -oL nohup paddle pserver --port=$PADDLE_INIT_PORT --ports_num=$PADDLE_INIT_PORTS_NUM \
19-
--ports_num_for_sparse=$PADDLE_INIT_PORTS_NUM_FOR_SPARSE --nics=$NICS \
18+
stdbuf -oL nohup paddle pserver \
19+
--port=$PADDLE_INIT_PORT \
20+
--ports_num=$PADDLE_INIT_PORTS_NUM \
21+
--ports_num_for_sparse=$PADDLE_INIT_PORTS_NUM_FOR_SPARSE \
22+
--nics=$NICS \
2023
--comment=paddle_cluster_pserver \
21-
--num_gradient_servers=$PADDLE_INIT_NUM_GRADIENT_SERVERS &> logs/pserver.log &
24+
--num_gradient_servers=$PADDLE_INIT_NUM_GRADIENT_SERVERS \
25+
&> logs/pserver.log &
2226

2327
# start trainer
2428
# NOTE: train.py will use the above environment variables as configuration

0 commit comments

Comments
 (0)