Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
e0a9115e
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
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看板
未验证
提交
e0a9115e
编写于
7月 29, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
7月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix random compile failure due to missing file (#25661)
上级
b3f58d30
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
12 deletion
+10
-12
cmake/generic.cmake
cmake/generic.cmake
+7
-9
paddle/fluid/framework/ir/CMakeLists.txt
paddle/fluid/framework/ir/CMakeLists.txt
+1
-1
paddle/fluid/operators/CMakeLists.txt
paddle/fluid/operators/CMakeLists.txt
+1
-1
paddle/fluid/operators/jit/CMakeLists.txt
paddle/fluid/operators/jit/CMakeLists.txt
+1
-1
未找到文件。
cmake/generic.cmake
浏览文件 @
e0a9115e
...
...
@@ -819,20 +819,18 @@ function(brpc_library TARGET_NAME)
cc_library
(
"
${
TARGET_NAME
}
"
SRCS
"
${
brpc_library_SRCS
}
"
DEPS
"
${
TARGET_NAME
}
_proto"
"
${
brpc_library_DEPS
}
"
)
endfunction
()
# copy_if_different from src_file to dst_file before barrier_target.
function
(
copy_if_different src_file dst_file barrier_target
)
# this is a dummy target, should always be run to update ${dst_file}
add_custom_target
(
before_
${
barrier_target
}
ALL
DEPENDS before_
${
barrier_target
}
_custom_command
)
add_dependencies
(
${
barrier_target
}
before_
${
barrier_target
}
)
# copy_if_different from src_file to dst_file At the beginning of the build.
function
(
copy_if_different src_file dst_file
)
get_filename_component
(
FILE_NAME
${
dst_file
}
NAME_WE
)
add_custom_command
(
OUTPUT before_
${
barrier_target
}
_custom_command
# this is a dummy target for custom command, should always be run firstly to update ${dst_file}
add_custom_target
(
copy_
${
FILE_NAME
}
_command ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
src_file
}
${
dst_file
}
COMMENT
"copy_if_different
${
dst_file
}
"
VERBATIM
)
add_dependencies
(
extern_glog copy_
${
FILE_NAME
}
_command
)
endfunction
()
# create a dummy source file, then create a static library.
...
...
paddle/fluid/framework/ir/CMakeLists.txt
浏览文件 @
e0a9115e
...
...
@@ -4,7 +4,7 @@ file(WRITE ${pass_file} "// Generated by the paddle/fluid/framework/ir/CMakeList
file
(
APPEND
${
pass_file
}
"
\#
pragma once
\n
"
)
file
(
APPEND
${
pass_file
}
"
\#
include
\"
paddle/fluid/framework/ir/pass.h
\"\n
"
)
copy_if_different
(
${
pass_file
}
${
pass_file_final
}
extern_glog
)
copy_if_different
(
${
pass_file
}
${
pass_file_final
}
)
add_subdirectory
(
fuse_optimizer_ops_pass
)
add_subdirectory
(
memory_optimize_pass
)
...
...
paddle/fluid/operators/CMakeLists.txt
浏览文件 @
e0a9115e
...
...
@@ -7,7 +7,7 @@ set(pybind_file ${PADDLE_BINARY_DIR}/paddle/fluid/pybind/pybind.h.tmp CACHE INTE
set
(
pybind_file_final
${
PADDLE_BINARY_DIR
}
/paddle/fluid/pybind/pybind.h
)
file
(
WRITE
${
pybind_file
}
"// Generated by the paddle/fluid/operators/CMakeLists.txt. DO NOT EDIT!
\n\n
"
)
copy_if_different
(
${
pybind_file
}
${
pybind_file_final
}
operator
)
copy_if_different
(
${
pybind_file
}
${
pybind_file_final
}
)
add_subdirectory
(
math
)
add_subdirectory
(
controlflow
)
...
...
paddle/fluid/operators/jit/CMakeLists.txt
浏览文件 @
e0a9115e
...
...
@@ -12,7 +12,7 @@ file(GLOB jit_kernel_cc_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.cc")
list
(
REMOVE_ITEM jit_kernel_cc_srcs test.cc benchmark.cc
)
cc_library
(
jit_kernel_base SRCS
${
jit_kernel_cc_srcs
}
DEPS
${
JIT_KERNEL_DEPS
}
)
copy_if_different
(
${
jit_file
}
${
jit_file_final
}
jit_kernel_base
)
copy_if_different
(
${
jit_file
}
${
jit_file_final
}
)
# refer must go first
add_subdirectory
(
refer
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录