Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
65a70a06
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看板
提交
65a70a06
编写于
7月 23, 2021
作者:
Z
zhouwei25
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve sccache hit rate and avoid absolute path
上级
b436e5fa
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
9 addition
and
10 deletion
+9
-10
cmake/generic.cmake
cmake/generic.cmake
+1
-5
cmake/unity_build.cmake
cmake/unity_build.cmake
+5
-2
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+3
-1
tools/parallel_UT_rule.py
tools/parallel_UT_rule.py
+0
-2
未找到文件。
cmake/generic.cmake
浏览文件 @
65a70a06
...
...
@@ -932,12 +932,8 @@ function(generate_dummy_static_lib)
if
(
NOT dummy_GENERATOR
)
message
(
FATAL_ERROR
"You must provide a generator file name."
)
endif
()
# if ${dummy_GENERATOR} contains "/", it may be a file path
if
(
NOT
${
dummy_GENERATOR
}
MATCHES
".*/.*"
)
set
(
dummy_GENERATOR
"
${
CMAKE_CURRENT_LIST_DIR
}
/
${
dummy_GENERATOR
}
"
)
endif
()
if
(
NOT dummy_CONTENT
)
set
(
dummy_CONTENT
"
${
dummy_
FILE_PATH
}
for lib
${
dummy_LIB_NAME
}
"
)
set
(
dummy_CONTENT
"
${
dummy_
LIB_NAME
}
_dummy.c
for lib
${
dummy_LIB_NAME
}
"
)
endif
()
configure_file
(
${
PROJECT_SOURCE_DIR
}
/cmake/dummy.c.in
${
dummy_FILE_PATH
}
@ONLY
)
...
...
cmake/unity_build.cmake
浏览文件 @
65a70a06
...
...
@@ -77,11 +77,14 @@ function(compose_unity_target_sources TARGET TYPE)
get_property
(
unity_group_index_max GLOBAL PROPERTY
${
TARGET
}
_
${
TYPE
}
_group_index
)
foreach
(
src
${
ARGN
}
)
set
(
unity_file
""
)
# UB use absolute path of source.
# Note(zhouwei25): UB use the path releative to CMAKE_SOURCE_DIR.
# If use absolute path, sccache/ccache hit rate will be reduced.
if
(
IS_ABSOLUTE
${
src
}
)
set
(
src_absolute_path
${
src
}
)
file
(
RELATIVE_PATH src_relative_path
${
CMAKE_SOURCE_DIR
}
${
src
}
)
else
()
set
(
src_absolute_path
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
src
}
)
file
(
RELATIVE_PATH src_relative_path
${
CMAKE_SOURCE_DIR
}
${
src_absolute_path
}
)
endif
()
# If `unity_group_index_max` is empty, there is no combination
# relationship.
...
...
@@ -106,7 +109,7 @@ function(compose_unity_target_sources TARGET TYPE)
set_property
(
GLOBAL APPEND PROPERTY
${
unity_file_sources
}
${
UNITY_CU_BEFORE_CODE
}
)
endif
()
endif
()
set_property
(
GLOBAL APPEND PROPERTY
${
unity_file_sources
}
"#include
\"
${
src_
absolut
e_path
}
\"
"
)
set_property
(
GLOBAL APPEND PROPERTY
${
unity_file_sources
}
"#include
\"
${
src_
relativ
e_path
}
\"
"
)
set
(
unity_target_sources
${
unity_target_sources
}
${
unity_file
}
)
break
()
endif
()
...
...
paddle/scripts/paddle_build.bat
浏览文件 @
65a70a06
...
...
@@ -154,15 +154,17 @@ dir %cache_dir%
dir
paddle
\fluid\pybind\Release
rem -------Caching strategy 1: End --------------------------------
rem -------Caching strategy 2: sccache decorate compiler-----------
if
"
%WITH_SCCACHE%
"
==
"ON"
(
del
D
:\sccache\sccache_log.txt
cmd
/C
sccache
-V
||
call
:install
_sccache
sccache
--stop-server
2
>
NUL
if
not
exist
D
:\sccache
mkdir
D
:\sccache
set
SCCACHE_DIR
=
D
:\sccache\.cache
set
SCCACHE_CACHE_SIZE
=
30
G
set
SCCACHE_ERROR_LOG
=
D
:\sccache\sccache_log.txt
set
SCCACHE_LOG
=
quiet
set
SCCACHE_LOG
=
trace
sccache
--start-server
sccache
-z
goto
:CASE
_
%
1
...
...
tools/parallel_UT_rule.py
浏览文件 @
65a70a06
...
...
@@ -674,7 +674,6 @@ TWO_PARALLEL_JOB = [
'test_fill_op'
,
'test_slice_op'
,
'test_cond'
,
'test_lstm'
,
'test_ema'
,
'test_nan_inf'
,
'test_isinstance'
,
...
...
@@ -810,7 +809,6 @@ TWO_PARALLEL_JOB = [
'test_embedding_id_stop_gradient'
,
'test_empty_op'
,
'test_py_reader_combination'
,
'test_ptb_lm'
,
'test_expand_op'
,
'test_prroi_pool_op'
,
'test_fake_dequantize_op'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录