!18690 [MSLITE] adjust scripts execute order

Merge pull request !18690 from XianglongZeng/myms_2
This commit is contained in:
i-robot 2021-06-25 01:30:10 +00:00 committed by Gitee
commit 8fb0026d42
1 changed files with 17 additions and 17 deletions

View File

@ -430,6 +430,13 @@ echo 'run x86 codegen parallel logs: ' > ${run_x86_codegen_parallel_log_file}
backend=${backend:-"all"}
isFailed=0
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-avx" ]]; then
# Run on x86-avx
echo "start Run x86 avx ..."
Run_x86_avx &
Run_x86_avx_PID=$!
sleep 1
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86" ]]; then
# Run on x86
echo "start Run x86 ..."
@ -444,13 +451,6 @@ if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-sse" ]]; th
Run_x86_sse_PID=$!
sleep 1
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-avx" ]]; then
# Run on x86-avx
echo "start Run x86 avx ..."
Run_x86_avx &
Run_x86_avx_PID=$!
sleep 1
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-java" ]]; then
# Run on x86-java
echo "start Run x86 java ..."
@ -474,16 +474,6 @@ if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-codegen-par
sleep 1
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-sse" ]]; then
wait ${Run_x86_sse_PID}
Run_x86_sse_status=$?
if [[ ${Run_x86_sse_status} != 0 ]];then
echo "Run_x86 sse failed"
cat ${run_x86_sse_log_file}
isFailed=1
fi
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-avx" ]]; then
wait ${Run_x86_avx_PID}
Run_x86_avx_status=$?
@ -494,6 +484,16 @@ if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-avx" ]]; th
isFailed=1
fi
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86-sse" ]]; then
wait ${Run_x86_sse_PID}
Run_x86_sse_status=$?
if [[ ${Run_x86_sse_status} != 0 ]];then
echo "Run_x86 sse failed"
cat ${run_x86_sse_log_file}
isFailed=1
fi
fi
if [[ $backend == "all" || $backend == "x86-all" || $backend == "x86" ]]; then
wait ${Run_x86_PID}
Run_x86_status=$?