test_launch_ps.sh 265 字节
Newer Older
1 2 3
#!/bin/bash
set -e
# use default values
4 5
launch_py=${PADDLE_BINARY_DIR}/python/paddle/distributed/launch_ps.py
python ${launch_py} fleet_ps_training.py 2> ut.elog
6 7 8 9 10 11 12

if grep -q "server are killed" ut.elog; then
    echo "succeed"
else
    echo "failed"
    exit -1
fi