Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
7ab47e8d
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
7ab47e8d
编写于
4月 13, 2021
作者:
Y
YUNSHEN XIE
提交者:
GitHub
4月 13, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix prec on windows for long args (#32218)
* fix error for long args * remove unneccessary code
上级
6e946e9d
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
24 deletion
+13
-24
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+0
-16
tools/windows/get_prec_ut_list.py
tools/windows/get_prec_ut_list.py
+4
-1
tools/windows/run_unittests.sh
tools/windows/run_unittests.sh
+9
-7
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
7ab47e8d
...
@@ -462,27 +462,11 @@ dir %THIRD_PARTY_PATH:/=\%\install\mkldnn\bin
...
@@ -462,27 +462,11 @@ dir %THIRD_PARTY_PATH:/=\%\install\mkldnn\bin
dir
%THIRD
_PARTY_PATH:/
=
\
%
\install\warpctc\bin
dir
%THIRD
_PARTY_PATH:/
=
\
%
\install\warpctc\bin
pip
install
requests
pip
install
requests
python
%work_dir%
\tools\get_quick_disable_lt.py
>
Output
if
%errorlevel%
==
0
(
set
/p
disable_ut_quickly
=<
Output
DEL
Output
)
else
(
set
disable_ut_quickly
=
''
)
set
PATH
=
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\lib
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\bin
;
^
set
PATH
=
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\lib
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\openblas\bin
;
^
%THIRD
_PARTY_PATH:/
=
\
%
\install\zlib\bin
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\mklml\lib
;
^
%THIRD
_PARTY_PATH:/
=
\
%
\install\zlib\bin
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\mklml\lib
;
^
%THIRD
_PARTY_PATH:/
=
\
%
\install\mkldnn\bin
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\warpctc\bin
;
%PATH%
%THIRD
_PARTY_PATH:/
=
\
%
\install\mkldnn\bin
;
%THIRD
_PARTY_PATH:/
=
\
%
\install\warpctc\bin
;
%PATH%
if
"
%NIGHTLY_MODE%
"
==
"ON"
(
set
nightly_label
=
"()"
)
else
(
set
nightly_label
=
"(RUN_TYPE=NIGHTLY
^|
RUN_TYPE=DIST:NIGHTLY
^|
RUN_TYPE=EXCLUSIVE:NIGHTLY)"
echo
========================================
echo
"Unittests with nightly labels are only run at night"
echo
========================================
)
if
"
%WITH_GPU%
"
==
"ON"
(
if
"
%WITH_GPU%
"
==
"ON"
(
goto
:parallel
_test_base_gpu
goto
:parallel
_test_base_gpu
)
else
(
)
else
(
...
...
tools/windows/get_prec_ut_list.py
浏览文件 @
7ab47e8d
...
@@ -37,6 +37,9 @@ def get_prec_ut_list(all_test_cases, prec_test_cases):
...
@@ -37,6 +37,9 @@ def get_prec_ut_list(all_test_cases, prec_test_cases):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# get prec cases lists
with
open
(
'ut_list'
,
'r'
)
as
f
:
prec_test_cases
=
f
.
read
()
all_test_cases
=
sys
.
argv
[
1
]
all_test_cases
=
sys
.
argv
[
1
]
prec_test_cases
=
sys
.
argv
[
2
]
#
prec_test_cases = sys.argv[2]
get_prec_ut_list
(
all_test_cases
,
prec_test_cases
)
get_prec_ut_list
(
all_test_cases
,
prec_test_cases
)
tools/windows/run_unittests.sh
浏览文件 @
7ab47e8d
...
@@ -38,11 +38,13 @@ else
...
@@ -38,11 +38,13 @@ else
fi
fi
# check added ut
# check added ut
set
+e
if
[
${
WITH_GPU
:-
OFF
}
==
"ON"
]
;
then
cp
$PADDLE_ROOT
/tools/check_added_ut.sh
$PADDLE_ROOT
/tools/check_added_ut_win.sh
set
+e
bash
$PADDLE_ROOT
/tools/check_added_ut_win.sh
cp
$PADDLE_ROOT
/tools/check_added_ut.sh
$PADDLE_ROOT
/tools/check_added_ut_win.sh
rm
-rf
$PADDLE_ROOT
/tools/check_added_ut_win.sh
bash
$PADDLE_ROOT
/tools/check_added_ut_win.sh
set
-e
rm
-rf
$PADDLE_ROOT
/tools/check_added_ut_win.sh
set
-e
fi
# /*==================Fixed Disabled Windows unittests==============================*/
# /*==================Fixed Disabled Windows unittests==============================*/
...
@@ -231,9 +233,9 @@ if [ ${WITH_GPU:-OFF} == "ON" ];then
...
@@ -231,9 +233,9 @@ if [ ${WITH_GPU:-OFF} == "ON" ];then
set
+e
set
+e
if
[
${
PRECISION_TEST
:-
OFF
}
==
"ON"
]
&&
[[
"
$precision_cases
"
!=
""
]]
;
then
if
[
${
PRECISION_TEST
:-
OFF
}
==
"ON"
]
&&
[[
"
$precision_cases
"
!=
""
]]
;
then
UT_list_res
=
$(
python
${
PADDLE_ROOT
}
/tools/windows/get_prec_ut_list.py
"
$UT_list
"
"
$precision_cases
"
)
UT_list_res
=
$(
python
${
PADDLE_ROOT
}
/tools/windows/get_prec_ut_list.py
"
$UT_list
"
)
UT_list_prec
=
$(
echo
"
${
UT_list_res
}
"
|
grep
-v
'PRECISION_TEST'
)
UT_list_prec
=
$(
echo
"
${
UT_list_res
}
"
|
grep
-v
'PRECISION_TEST'
)
UT_list_prec_info
=
$(
echo
"
${
UT_list_res
}
"
|
grep
'PRECISION_TEST'
)
echo
"
${
UT_list_res
}
"
|
grep
'PRECISION_TEST'
UT_list
=
$UT_list_prec
UT_list
=
$UT_list_prec
fi
fi
set
-e
set
-e
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录