Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
e625f884
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e625f884
编写于
4月 07, 2021
作者:
I
iducn
提交者:
GitHub
4月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
print build summary (#32110)
* print build summary * print build summary * print build summary * print build summary
上级
a881b4d5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
14 deletion
+20
-14
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+20
-14
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
e625f884
...
...
@@ -404,7 +404,7 @@ EOF
tar
-czf
paddle_inference.tgz paddle_inference
buildSize
=
$(
du
-h
--max-depth
=
0
${
PADDLE_ROOT
}
/build/paddle_inference.tgz |awk
'{print $1}'
)
echo
"Paddle_Inference Size:
$buildSize
"
echo
"ipipe_log_param_Paddle_Inference_Size:
$buildSize
"
echo
"ipipe_log_param_Paddle_Inference_Size:
$buildSize
"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
else
SYSTEM
=
`
uname
-s
`
if
[
"
$SYSTEM
"
==
"Darwin"
]
;
then
...
...
@@ -414,10 +414,10 @@ EOF
fi
buildSize
=
$(
$com
${
PADDLE_ROOT
}
/build |awk
'{print $1}'
)
echo
"Build Size:
$buildSize
"
echo
"ipipe_log_param_Build_Size:
$buildSize
"
echo
"ipipe_log_param_Build_Size:
$buildSize
"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
PR_whlSize
=
$(
$com
${
PADDLE_ROOT
}
/build/python/dist |awk
'{print $1}'
)
echo
"PR whl Size:
$PR_whlSize
"
echo
"ipipe_log_param_PR_whl_Size:
$PR_whlSize
"
echo
"ipipe_log_param_PR_whl_Size:
$PR_whlSize
"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
fi
}
...
...
@@ -442,7 +442,7 @@ function cmake_gen_and_build() {
build
$2
endTime_s
=
`
date
+%s
`
echo
"Build Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
}
function
build_mac
()
{
...
...
@@ -480,7 +480,7 @@ function cmake_gen_and_build_mac() {
build_mac
endTime_s
=
`
date
+%s
`
echo
"Build Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
}
function
run_test
()
{
...
...
@@ -684,7 +684,7 @@ EOF
#mactest_error=$?
ut_endTime_s
=
`
date
+%s
`
echo
"Mac testCase Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_Mac_TestCases_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_Mac_TestCases_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
paddle version
# Recovery proxy to avoid failure in later steps
set
+x
...
...
@@ -993,10 +993,10 @@ EOF
num
=
$(
echo
$testcases
|grep
-o
'\^'
|wc
-l
)
if
((
$2
==
-1
))
;
then
echo
"exclusive TestCases count is
$num
"
echo
"ipipe_log_param_Exclusive_TestCases_Count:
$num
"
echo
"ipipe_log_param_Exclusive_TestCases_Count:
$num
"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
else
echo
"
$2
card TestCases count is
$num
"
echo
"ipipe_log_param_
${
2
}
_Cards_TestCases_Count:
$num
"
echo
"ipipe_log_param_
${
2
}
_Cards_TestCases_Count:
$num
"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
fi
}
...
...
@@ -1098,10 +1098,10 @@ function card_test() {
ut_endTime_s
=
`
date
+%s
`
if
((
$2
==
-1
))
;
then
echo
"exclusive TestCases Total Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_Exclusive_TestCases_Total_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_Exclusive_TestCases_Total_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
else
echo
"
$2
card TestCases Total Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_
${
2
}
_Cards_TestCases_Total_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"ipipe_log_param_
${
2
}
_Cards_TestCases_Total_Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
fi
set
+m
}
...
...
@@ -1448,7 +1448,7 @@ function parallel_test() {
fi
ut_total_endTime_s
=
`
date
+%s
`
echo
"TestCases Total Time:
$[
$ut_total_endTime_s
-
$ut_total_startTime_s
]s"
echo
"ipipe_log_param_TestCases_Total_Time:
$[
$ut_total_endTime_s
-
$ut_total_startTime_s
]s"
echo
"ipipe_log_param_TestCases_Total_Time:
$[
$ut_total_endTime_s
-
$ut_total_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
}
function
enable_unused_var_check
()
{
...
...
@@ -1728,7 +1728,7 @@ EOF
fi
endTime_s
=
`
date
+%s
`
echo
"Build Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
echo
"ipipe_log_param_Build_Time:
$[
$endTime_s
-
$startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
build_size
"paddle_inference"
}
...
...
@@ -1760,7 +1760,7 @@ EOF
EXIT_CODE
=
$?
fluid_endTime_s
=
`
date
+%s
`
echo
"test_fluid_lib Total Time:
$[
$fluid_endTime_s
-
$fluid_startTime_s
]s"
echo
"ipipe_log_param_Test_Fluid_Lib_Total_Time:
$[
$fluid_endTime_s
-
$fluid_startTime_s
]s"
echo
"ipipe_log_param_Test_Fluid_Lib_Total_Time:
$[
$fluid_endTime_s
-
$fluid_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
./clean.sh
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
exit
8
;
...
...
@@ -1807,7 +1807,7 @@ function example() {
function
collect_ccache_hits
()
{
rate
=
$(
ccache
-s
|
grep
'cache hit rate'
|
awk
'{print $4}'
)
echo
"ccache hit rate:
${
rate
}
%"
echo
"ipipe_log_param_Ccache_Hit_Rate:
${
rate
}
%"
echo
"ipipe_log_param_Ccache_Hit_Rate:
${
rate
}
%"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
}
...
...
@@ -2029,6 +2029,12 @@ function main() {
exit
1
;;
esac
set
+x
if
[[
-f
${
PADDLE_ROOT
}
/build/build_summary.txt
]]
;
then
echo
"=====================build summary======================"
cat
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"========================================================"
fi
echo
"paddle_build script finished as expected"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录