Skip to content

Instantly share code, notes, and snippets.

@typhoonzero
Last active June 4, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typhoonzero/06e3f44fdf3bc4bdacebaeb379d4cc19 to your computer and use it in GitHub Desktop.
Save typhoonzero/06e3f44fdf3bc4bdacebaeb379d4cc19 to your computer and use it in GitHub Desktop.
Debug fluid distributed jobs on local machine.
#!/bin/bash
PSERVERS=""
for i in {6170..6171}
do
if [ "${PSERVERS}" == "" ]; then
PSERVERS="127.0.0.1:${i}"
else
PSERVERS="${PSERVERS},127.0.0.1:${i}"
fi
done
export PSERVERS=$PSERVERS
export TRAINERS=2
export TRAINING_ROLE=PSERVER
export PYTHONPATH=/paddle/build/python
export GLOG_v=3
export GLOG_logtostderr=1
for i in {0..1}
do
port="617${i}"
CURRENT_ENDPOINT="127.0.0.1:${port}" PADDLE_INIT_TRAINER_ID="${i}" stdbuf -oL python dist_test.py &> slog.${i} &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment