Last active
June 4, 2018 09:12
-
-
Save typhoonzero/06e3f44fdf3bc4bdacebaeb379d4cc19 to your computer and use it in GitHub Desktop.
Debug fluid distributed jobs on local machine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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