Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3765da98
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
3765da98
编写于
12月 03, 2020
作者:
W
wanghuancoder
提交者:
GitHub
12月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add coverage incremental switch, test=develop (#29290)
上级
cf433221
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
3 deletion
+10
-3
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake/coveralls.cmake
cmake/coveralls.cmake
+6
-2
cmake/generic.cmake
cmake/generic.cmake
+1
-1
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+2
-0
未找到文件。
CMakeLists.txt
浏览文件 @
3765da98
...
@@ -128,6 +128,7 @@ option(WITH_AMD_GPU "Compile PaddlePaddle with AMD GPU" OFF)
...
@@ -128,6 +128,7 @@ option(WITH_AMD_GPU "Compile PaddlePaddle with AMD GPU" OFF)
option
(
WITH_NV_JETSON
"Compile PaddlePaddle with NV JETSON"
OFF
)
option
(
WITH_NV_JETSON
"Compile PaddlePaddle with NV JETSON"
OFF
)
option
(
WITH_PROFILER
"Compile PaddlePaddle with GPU profiler and gperftools"
OFF
)
option
(
WITH_PROFILER
"Compile PaddlePaddle with GPU profiler and gperftools"
OFF
)
option
(
WITH_COVERAGE
"Compile PaddlePaddle with code coverage"
OFF
)
option
(
WITH_COVERAGE
"Compile PaddlePaddle with code coverage"
OFF
)
option
(
WITH_INCREMENTAL_COVERAGE
"Generate coverage reports only for incremental code"
OFF
)
OPTION
(
WITH_LIBXSMM
"Compile with libxsmm"
OFF
)
OPTION
(
WITH_LIBXSMM
"Compile with libxsmm"
OFF
)
option
(
COVERALLS_UPLOAD
"Package code coverage data to coveralls"
OFF
)
option
(
COVERALLS_UPLOAD
"Package code coverage data to coveralls"
OFF
)
option
(
WITH_PSLIB
"Compile with pslib support"
OFF
)
option
(
WITH_PSLIB
"Compile with pslib support"
OFF
)
...
...
cmake/coveralls.cmake
浏览文件 @
3765da98
...
@@ -62,11 +62,15 @@ function(code_coverage _COVERAGE_SRCS _COVERALLS_UPLOAD _CMAKE_SCRIPT_PATH)
...
@@ -62,11 +62,15 @@ function(code_coverage _COVERAGE_SRCS _COVERALLS_UPLOAD _CMAKE_SCRIPT_PATH)
endfunction
()
endfunction
()
if
(
WITH_COVERAGE
)
if
(
WITH_COVERAGE
)
if
(
NOT
(
"$ENV{PADDLE_GIT_DIFF_H_FILE}"
STREQUAL
""
))
if
(
WITH_INCREMENTAL_COVERAGE
)
if
(
NOT
(
"$ENV{PADDLE_GIT_DIFF_H_FILE}"
STREQUAL
""
))
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
endif
()
else
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-g -O0 -fprofile-arcs -ftest-coverage"
)
endif
()
endif
()
set
(
EXCLUDE_DIRS
set
(
EXCLUDE_DIRS
"demo/"
"demo/"
"build/"
"build/"
...
...
cmake/generic.cmake
浏览文件 @
3765da98
...
@@ -267,7 +267,7 @@ function(merge_static_libs TARGET_NAME)
...
@@ -267,7 +267,7 @@ function(merge_static_libs TARGET_NAME)
endfunction
(
merge_static_libs
)
endfunction
(
merge_static_libs
)
function
(
check_coverage_opt TARGET_NAME SRCS
)
function
(
check_coverage_opt TARGET_NAME SRCS
)
if
(
WITH_COVERAGE
)
if
(
WITH_COVERAGE
AND WITH_INCREMENTAL_COVERAGE
)
if
(
"$ENV{PADDLE_GIT_DIFF_H_FILE}"
STREQUAL
""
)
if
(
"$ENV{PADDLE_GIT_DIFF_H_FILE}"
STREQUAL
""
)
if
(
NOT
(
"$ENV{PADDLE_GIT_DIFF_CC_FILE}"
STREQUAL
""
))
if
(
NOT
(
"$ENV{PADDLE_GIT_DIFF_CC_FILE}"
STREQUAL
""
))
string
(
REPLACE
","
";"
CC_FILE_LIST $ENV{PADDLE_GIT_DIFF_CC_FILE}
)
string
(
REPLACE
","
";"
CC_FILE_LIST $ENV{PADDLE_GIT_DIFF_CC_FILE}
)
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
3765da98
...
@@ -232,6 +232,7 @@ function cmake_base() {
...
@@ -232,6 +232,7 @@ function cmake_base() {
-DCUDNN_ROOT=/usr/
-DCUDNN_ROOT=/usr/
-DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-WITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
...
@@ -266,6 +267,7 @@ EOF
...
@@ -266,6 +267,7 @@ EOF
-DCUDNN_ROOT
=
/usr/
\
-DCUDNN_ROOT
=
/usr/
\
-DWITH_TESTING
=
${
WITH_TESTING
:-
ON
}
\
-DWITH_TESTING
=
${
WITH_TESTING
:-
ON
}
\
-DWITH_COVERAGE
=
${
WITH_COVERAGE
:-
OFF
}
\
-DWITH_COVERAGE
=
${
WITH_COVERAGE
:-
OFF
}
\
-WITH_INCREMENTAL_COVERAGE
=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
\
-DCMAKE_MODULE_PATH
=
/opt/rocm/hip/cmake
\
-DCMAKE_MODULE_PATH
=
/opt/rocm/hip/cmake
\
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
\
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
\
-DWITH_CONTRIB
=
${
WITH_CONTRIB
:-
ON
}
\
-DWITH_CONTRIB
=
${
WITH_CONTRIB
:-
ON
}
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录