Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
e8ce3311
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看板
未验证
提交
e8ce3311
编写于
11月 12, 2021
作者:
H
Huihuang Zheng
提交者:
GitHub
11月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Paddle-CINN CI (#37145)
Fix Paddle-CINN CI
上级
bd79ae8a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
51 addition
and
3 deletion
+51
-3
paddle/fluid/framework/paddle2cinn/cinn_compiler.cc
paddle/fluid/framework/paddle2cinn/cinn_compiler.cc
+1
-1
paddle/fluid/framework/paddle2cinn/cinn_compiler.h
paddle/fluid/framework/paddle2cinn/cinn_compiler.h
+1
-1
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+49
-1
未找到文件。
paddle/fluid/framework/paddle2cinn/cinn_compiler.cc
浏览文件 @
e8ce3311
...
...
@@ -183,7 +183,7 @@ void CinnCompiler::Clear() {
graphs_
.
clear
();
cache_
.
clear
();
}
real_compiled_num_
.
store
(
1
);
real_compiled_num_
.
store
(
0
);
}
std
::
unique_ptr
<
CinnCompiledObject
>
CinnCompiler
::
CompileGraph
(
...
...
paddle/fluid/framework/paddle2cinn/cinn_compiler.h
浏览文件 @
e8ce3311
...
...
@@ -89,7 +89,7 @@ class CinnCompiler {
std
::
unordered_map
<
CinnCacheKey
,
std
::
unique_ptr
<
CinnCompiledObject
>
,
CinnCacheKey
::
Hash
>
cache_
;
std
::
atomic_int64_t
real_compiled_num_
{
1
};
std
::
atomic_int64_t
real_compiled_num_
{
0
};
mutable
RWLock
rwlock_
;
DISABLE_COPY_AND_ASSIGN
(
CinnCompiler
);
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
e8ce3311
...
...
@@ -1758,6 +1758,52 @@ set -x
fi
}
function
parallel_test_base_cinn
()
{
if
[
${
WITH_TESTING
:-
ON
}
==
"ON"
]
;
then
cat
<<
EOF
========================================
Running unit cinn tests ...
========================================
EOF
set
+x
ut_startTime_s
=
`
date
+%s
`
test_cases
=
$(
ctest
-N
-V
)
# get all test cases
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
while
read
-r
line
;
do
if
[[
"
$line
"
==
""
]]
;
then
continue
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# RUN_TYPE=CINN mean the case would run in CINN CI.
read
is_cinn
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=CINN"
)
continue
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$is_cinn
"
!=
""
]]
;
then
if
[[
"
$single_card_tests
"
==
""
]]
;
then
single_card_tests
=
"^
$testcase
$"
else
single_card_tests
=
"
$single_card_tests
|^
$testcase
$"
fi
fi
is_cinn
=
''
matchstr
=
''
testcase
=
''
done
<<<
"
$test_cases
"
;
card_test
"
$single_card_tests
"
1
collect_failed_tests
set
-x
ut_endTime_s
=
`
date
+%s
`
echo
"CINN testCase Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
exit
8
;
fi
fi
}
function
parallel_test_base_npu
()
{
# skipping if no NPU related files changed
if
[
${
SKIP_NPU_TEST
:-
ON
}
==
"ON"
]
;
then
...
...
@@ -1903,7 +1949,9 @@ function parallel_test() {
pip
install
${
PADDLE_ROOT
}
/build/python/dist/
*
whl
cp
${
PADDLE_ROOT
}
/build/python/paddle/fluid/tests/unittests/op_test.py
${
PADDLE_ROOT
}
/build/python
ut_total_startTime_s
=
`
date
+%s
`
if
[
"
$WITH_GPU
"
==
"ON"
]
||
[
"
$WITH_ROCM
"
==
"ON"
]
;
then
if
[
"
$WITH_CINN
"
==
"ON"
]
;
then
parallel_test_base_cinn
elif
[
"
$WITH_GPU
"
==
"ON"
]
||
[
"
$WITH_ROCM
"
==
"ON"
]
;
then
parallel_test_base_gpu
elif
[
"
$WITH_XPU
"
==
"ON"
]
;
then
parallel_test_base_xpu
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录