未验证 提交 cec1abc3 编写于 作者: Q Qi Li 提交者: GitHub

[NPU] update npu ut skil scirpts, test=develop (#35360)

* [NPU] update npu ut skil scirpts, test=develop

* update, test=develop

* update scripst, test=develop

* add debug code, test=develop

* update
上级 e77fd2e6
......@@ -1703,11 +1703,13 @@ set -x
function parallel_test_base_npu() {
# skipping if no NPU related files changed
if [ ${SKIL_NPU_TEST:-ON} == "ON" ] ; then
npu_cc_files=$(git diff --name-only ${BRANCH} | grep "op_npu.cc" | wc -l)
npu_py_files=$(git diff --name-only ${BRANCH} | grep "python/paddle/fluid/tests/unittests/npu" | wc -l)
if [ "${npu_cc_files}" -eq 0 ] && [ "${npu_py_files}" -eq 0 ] ; then
echo "NO NPU operators files changed, skip NPU unit tests"
if [ ${SKIP_NPU_TEST:-ON} == "ON" ] ; then
fetch_upstream_develop_if_not_exist
git diff --name-only remotes/upstream/$BRANCH
npu_cc_changes=$(git diff --name-only remotes/upstream/$BRANCH | grep "op_npu.cc" || true)
npu_py_changes=$(git diff --name-only remotes/upstream/$BRANCH | grep "op_npu.py" || true)
if [ -z "${npu_cc_changes}" ] && [ -z "${npu_py_changes}" ] ; then
echo "NO NPU operators files changed, skip NPU unit tests!"
exit 0
fi
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册