Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
631d7837
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看板
未验证
提交
631d7837
编写于
12月 29, 2020
作者:
Z
zhangchunle
提交者:
GitHub
12月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug in windows ci (#29963)
上级
6206b9bc
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
10 addition
and
9 deletion
+10
-9
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+9
-8
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+1
-1
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
631d7837
...
...
@@ -98,12 +98,13 @@ git diff --name-only %BRANCH% | findstr /V "\.py" || set CI_SKIP_CPP_TEST=ON
:mkbuild
if
not
exist
build
(
echo
Windows
build
cache
FALSE
echo
"ipipe_log_param_Windows_Build_Cache: FALSE"
set
Windows_Build_Cache
=
FALSE
mkdir
build
)
else
(
echo
Windows
build
cache
TRUE
echo
"ipipe_log_param_Windows_Build_Cache: TRUE"
set
Windows_Build_Cache
=
TRUE
)
echo
ipipe_log_param_Windows_Build_Cache
:
%Windows_Build_Cache%
cd
/d
build
dir
.
dir
%cache_dir%
...
...
@@ -331,12 +332,12 @@ set /p libsize=< lib_size.txt
for
/F
%%i
in
(
"
%libsize%
"
)
do
(
set
/a
libsize_m
=
%%i
/1024
echo
"Windows Paddle_Inference Size:
!libsize_m!
M"
echo
"ipipe_log_param_Windows_Paddle_Inference_Size:
!libsize_m!
M"
echo
ipipe_log_param_Windows_Paddle_Inference_Size
:
!libsize_m!
M
)
%cache_dir%
\tools\busybox64.exe
du
-h -d
0
%cd%
\python\dist
>
whl_size
.txt
set
/p
whlsize
=<
whl_size
.txt
for
/F
%%i
in
(
"
%whlsize%
"
)
do
echo
"Windows PR whl Size:
%%i
"
for
/F
%%i
in
(
"
%whlsize%
"
)
do
echo
"ipipe_log_param_Windows_PR_whl_Size:
%%i
"
for
/F
%%i
in
(
"
%whlsize%
"
)
do
echo
ipipe_log_param_Windows_PR_whl_Size
:
%%i
dir
/s /b
python
\dist\
*
.whl
>
whl_file
.txt
set
/p
PADDLE_WHL_FILE_WIN
=<
whl_file
.txt
...
...
@@ -489,7 +490,7 @@ echo spec_path=$(pwd)/UNITTEST_PR.spec>> check_change_of_unittest.sh
echo
ctest
-N
^|
awk
-F
':'
'{print $2}'
^|
sed
'/
^^
$/d'
^|
sed
'$d'
^>
$
{
spec_path
}>>
check_change_of_unittest
.sh
echo
num
=
$
(
awk
'END{print NR}'
$
{
spec_path
})>>
check_change_of_unittest
.sh
echo
echo
"Windows 1 card TestCases count is $num"
>>
check_change_of_unittest
.sh
echo
echo
"ipipe_log_param_Windows_1_Card_TestCases_Count: $num"
>>
check_change_of_unittest
.sh
echo
echo
ipipe_log_param_Windows_1_Card_TestCases_Count
: $num
>>
check_change_of_unittest
.sh
echo
UPSTREAM_URL
=
'https://github.com/PaddlePaddle/Paddle'
>>
check_change_of_unittest
.sh
echo
origin_upstream_url
=
`git remote -v
^|
awk '{print $1, $2}'
^|
uniq
^|
grep upstream
^|
awk '{print $2}'`
>>
check_change_of_unittest
.sh
echo
if
[
"$origin_upstream_url"
==
""
];
then
>>
check_change_of_unittest
.sh
...
...
@@ -581,7 +582,7 @@ set /a end_secs=dd*86400+hh*3600+nn*60+ss
set
/a
cost_secs
=
end_secs
-start
_sec
echo
"Windows
%
~3 Time:
%cost_secs%
s"
set
tempTaskName
=
%
~
3
echo
"ipipe_log_param_Windows_
%tempTaskName
: =_
%
_Time:
%cost_secs%
s"
echo
ipipe_log_param_Windows_
%tempTaskName
:
=
_
%
_Time:
%cost_secs%
s
goto
:eof
...
...
@@ -589,11 +590,11 @@ goto:eof
for
/f
"tokens=2,4"
%%i
in
(
'clcache.exe -s
^|
findstr "entries hits"'
)
do
set
%%i
=
%%j
if
%hits%
EQU
0
(
echo
"clcache hit rate: 0
%%
"
echo
"ipipe_log_param_Clcache_Hit_Rate: 0
%%
"
echo
ipipe_log_param_Clcache_Hit_Rate
:
0
%%
)
else
(
set
/a
rate
=
%hits%
*
10000
/
%entries%
echo
"clcache hit rate:
%rate
:~0,-2
%
.
%rate
:~-2
%%%
"
echo
"ipipe_log_param_Clcache_Hit_Hate:
%rate
:~0,-2
%
.
%rate
:~-2
%%%
"
echo
ipipe_log_param_Clcache_Hit_Hate
:
%rate
:
~
0
,-
2
%
.
%rate
:
~-
2
%%%
)
goto
:eof
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
631d7837
...
...
@@ -941,7 +941,7 @@ EOF
echo
"ipipe_log_param_Exclusive_TestCases_Count:
$num
"
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
"
fi
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录