Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2300d45f
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2300d45f
编写于
5月 23, 2022
作者:
S
Sing_chan
提交者:
GitHub
5月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【CI】run all demo ci before exit in windows (#42700) (#42897)
cherry-pick PR #42700
上级
84840481
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
18 deletion
+43
-18
paddle/fluid/inference/api/demo_ci/run.sh
paddle/fluid/inference/api/demo_ci/run.sh
+32
-14
paddle/fluid/inference/tests/infer_ut/run.sh
paddle/fluid/inference/tests/infer_ut/run.sh
+1
-1
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+10
-3
未找到文件。
paddle/fluid/inference/api/demo_ci/run.sh
浏览文件 @
2300d45f
...
...
@@ -106,6 +106,9 @@ mkdir -p build
cd
build
rm
-rf
*
# run all test cases before exit
EXIT_CODE
=
0
for
WITH_STATIC_LIB
in
ON OFF
;
do
if
[
$(
echo
`
uname
`
|
grep
"Win"
)
!=
""
]
;
then
# TODO(wilber, T8T9): Do we still need to support windows gpu static library
...
...
@@ -128,8 +131,8 @@ for WITH_STATIC_LIB in ON OFF; do
--dirname
=
$DATA_DIR
/word2vec/word2vec.inference.model
\
--use_gpu
=
$use_gpu
if
[
$?
-ne
0
]
;
then
echo
"simple_on_word2vec
demo runs fail."
exit
1
echo
"simple_on_word2vec
use_gpu:
${
use_gpu
}
runs failed "
>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
done
...
...
@@ -153,8 +156,8 @@ for WITH_STATIC_LIB in ON OFF; do
--refer
=
$DATA_DIR
/
$vis_demo_name
/result.txt
\
--use_gpu
=
$use_gpu
if
[
$?
-ne
0
]
;
then
echo
"vis demo
$vis_demo_name
runs fail."
exit
1
echo
"vis demo
$vis_demo_name
use_gpu:
${
use_gpu
}
runs failed "
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
done
done
...
...
@@ -179,8 +182,8 @@ for WITH_STATIC_LIB in ON OFF; do
--data
=
$DATA_DIR
/mobilenet/data.txt
\
--refer
=
$DATA_DIR
/mobilenet/result.txt
if
[
$?
-ne
0
]
;
then
echo
"trt
demo trt_mobilenet_demo runs fail."
exit
1
echo
"trt
_mobilenet_demo runs failed."
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
fi
else
...
...
@@ -200,8 +203,8 @@ for WITH_STATIC_LIB in ON OFF; do
--dirname
=
$DATA_DIR
/word2vec/word2vec.inference.model
\
--use_gpu
=
$use_gpu
if
[
$?
-ne
0
]
;
then
echo
"simple_on_word2vec
demo runs fail."
exit
1
echo
"simple_on_word2vec
use_gpu:
${
use_gpu
}
runs failed "
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
done
fi
...
...
@@ -222,8 +225,8 @@ for WITH_STATIC_LIB in ON OFF; do
--refer
=
$DATA_DIR
/
$vis_demo_name
/result.txt
\
--use_gpu
=
$use_gpu
if
[
$?
-ne
0
]
;
then
echo
"vis demo
$vis_demo_name
runs fail."
exit
1
echo
"vis demo
$vis_demo_name
use_gpu:
${
use_gpu
}
runs failed "
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
done
done
...
...
@@ -244,8 +247,8 @@ for WITH_STATIC_LIB in ON OFF; do
--data
=
$DATA_DIR
/mobilenet/data.txt
\
--refer
=
$DATA_DIR
/mobilenet/result.txt
if
[
$?
-ne
0
]
;
then
echo
"trt
demo trt_mobilenet_demo runs fail."
exit
1
echo
"trt
_mobilenet_demo runs failed "
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
fi
...
...
@@ -264,10 +267,25 @@ for WITH_STATIC_LIB in ON OFF; do
./onnxruntime_mobilenet_demo
\
--modeldir
=
$DATA_DIR
/MobileNetV2/MobileNetV2
if
[
$?
-ne
0
]
;
then
echo
"onnxruntime
demo onnxruntime_mobilenet_demo runs fail."
exit
1
echo
"onnxruntime
_mobilenet_demo runs failed "
>>
${
current_dir
}
/test_summary.txt
EXIT_CODE
=
1
fi
fi
fi
done
set
+x
if
[[
-f
${
current_dir
}
/test_summary.txt
]]
;
then
echo
" "
echo
"Summary demo_ci Failed Tests ..."
echo
"=====================test summary======================"
echo
"The following tests Failed: "
cat
${
current_dir
}
/test_summary.txt
echo
"========================================================"
echo
" "
fi
set
-x
exit
${
EXIT_CODE
}
paddle/fluid/inference/tests/infer_ut/run.sh
浏览文件 @
2300d45f
...
...
@@ -309,7 +309,7 @@ echo " "
if
[[
-f
${
exe_dir
}
/test_summary.txt
]]
;
then
echo
" "
echo
"Summary Failed Tests ..."
echo
"Summary
infer_ut
Failed Tests ..."
echo
"=====================test summary======================"
echo
"The following tests Failed: "
cat
${
exe_dir
}
/test_summary.txt
...
...
paddle/scripts/paddle_build.bat
浏览文件 @
2300d45f
...
...
@@ -302,10 +302,14 @@ if %errorlevel% NEQ 0 exit /b 1
call
:cmake
||
goto
cmake_error
call
:build
||
goto
build_error
call
:test
_inference
||
goto
test_inference_error
call
:test
_inference_ut
||
goto
test_inference_ut_error
call
:test
_inference
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
call
:test
_inference_ut
if
%errorlevel%
NEQ
0
set
error_code
=
%errorlevel%
call
:zip
_cc_file
||
goto
zip_cc_file_error
call
:zip
_c_file
||
goto
zip_c_file_error
if
%error_code%
NEQ
0
goto
test_inference_error
goto
:success
rem "Other configurations are added here"
...
...
@@ -758,12 +762,15 @@ for /F %%i in ("%libsize%") do (
cd
/d
%work_dir%
\paddle\fluid\inference\api\demo_ci
%cache_dir%
\tools\busybox64.exe
bash
run
.sh
%work
_dir:\
=
/
%
%WITH_MKL%
%WITH_GPU%
%cache
_dir:\
=
/
%
/inference
_demo
%WITH_TENSORRT%
%TENSORRT_ROOT%
%WITH_ONNXRUNTIME%
%MSVC_STATIC_CRT%
"
%CUDA_TOOLKIT_ROOT_DIR%
"
goto
:eof
:test
_inference_error
::echo 1 > %cache_dir%\error_code.txt
::type %cache_dir%\error_code.txt
echo
Testing
fluid
library
for
inference
failed
!
echo
==========================================
echo
Testing
inference
library
failed
!
echo
==========================================
exit
/b
1
rem ---------------------------------------------------------------------------------------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录