Browse Source

!188 fix st for matmul distribute

From: @xujincai0453
Reviewed-by: @xu-yfei,@zhangyinxia
Signed-off-by: @xu-yfei
tags/v1.2.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
40b328deeb
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/st/matmul_distributed/matmul_distribute.sh

+ 6
- 0
tests/st/matmul_distributed/matmul_distribute.sh View File

@@ -47,6 +47,12 @@ clean_master_pid()
ps aux | grep 'worker.py' | grep ${CURRUSER} | grep -v grep | awk '{print $2}' | xargs kill -9
echo "### master pid is killed but worker pid exist ###" & exit 1
fi
ps aux | grep 'agent.py' | grep ${CURRUSER} | grep -v grep
if [ $? -eq 0 ]
then
ps aux | grep 'agent.py' | grep ${CURRUSER} | grep -v grep | awk '{print $2}' | xargs kill -9
echo "### worker pid is killed but agent pid exist ###" & exit 1
fi
fi
}



Loading…
Cancel
Save