Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
9037c1c6
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
9037c1c6
编写于
6月 11, 2023
作者:
R
risemeup1
提交者:
GitHub
6月 11, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Fix compile error with C++17 on distribution (#54411)" (#54538)
This reverts commit
8b1839be
.
上级
df1f2b5d
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
75 addition
and
51 deletion
+75
-51
paddle/fluid/distributed/fleet_executor/CMakeLists.txt
paddle/fluid/distributed/fleet_executor/CMakeLists.txt
+60
-31
paddle/fluid/framework/CMakeLists.txt
paddle/fluid/framework/CMakeLists.txt
+8
-3
paddle/fluid/inference/api/CMakeLists.txt
paddle/fluid/inference/api/CMakeLists.txt
+3
-9
paddle/fluid/inference/utils/CMakeLists.txt
paddle/fluid/inference/utils/CMakeLists.txt
+1
-2
paddle/fluid/operators/tensorrt/CMakeLists.txt
paddle/fluid/operators/tensorrt/CMakeLists.txt
+3
-5
test/cpp/fluid/CMakeLists.txt
test/cpp/fluid/CMakeLists.txt
+0
-1
未找到文件。
paddle/fluid/distributed/fleet_executor/CMakeLists.txt
浏览文件 @
9037c1c6
...
@@ -25,8 +25,8 @@ cc_library(
...
@@ -25,8 +25,8 @@ cc_library(
task_loop_thread_pool
task_loop_thread_pool
SRCS task_loop_thread_pool.cc task_loop_thread.cc task_loop.cc
SRCS task_loop_thread_pool.cc task_loop_thread.cc task_loop.cc
DEPS enforce glog
)
DEPS enforce glog
)
if
(
WITH_XPU OR WITH_ROCM
)
cc_library
(
cc_library
(
fleet_executor
fleet_executor
SRCS fleet_executor.cc
SRCS fleet_executor.cc
carrier.cc
carrier.cc
...
@@ -55,7 +55,36 @@ cc_library(
...
@@ -55,7 +55,36 @@ cc_library(
phi
phi
glog
glog
${
BRPC_DEPS
}
)
${
BRPC_DEPS
}
)
else
()
cc_library
(
fleet_executor
SRCS fleet_executor.cc
carrier.cc
task_node.cc
runtime_graph.cc
dist_model.cc
interceptor.cc
compute_interceptor.cc
amplifier_interceptor.cc
cond_interceptor.cc
start_interceptor.cc
source_interceptor.cc
sink_interceptor.cc
message_service.cc
message_bus.cc
dist_model_tensor_wrapper.cc
DEPS proto_desc
standalone_executor
fleet_executor_desc_proto
interceptor_message_proto
task_loop_thread_pool
collective_helper
op_registry
executor_gc_helper
phi
glog
${
BRPC_DEPS
}
)
endif
()
if
(
WITH_DISTRIBUTE
)
if
(
WITH_DISTRIBUTE
)
set
(
DISTRIBUTE_COMPILE_FLAGS
set
(
DISTRIBUTE_COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
...
...
paddle/fluid/framework/CMakeLists.txt
浏览文件 @
9037c1c6
...
@@ -729,7 +729,8 @@ if(WITH_DISTRIBUTE)
...
@@ -729,7 +729,8 @@ if(WITH_DISTRIBUTE)
section_worker.cc
section_worker.cc
device_worker_factory.cc
device_worker_factory.cc
data_set.cc
data_set.cc
DEPS fleet_wrapper
DEPS fleet_executor
fleet_wrapper
recurrent_op_helper
recurrent_op_helper
op_registry
op_registry
device_context
device_context
...
@@ -836,6 +837,7 @@ if(WITH_DISTRIBUTE)
...
@@ -836,6 +837,7 @@ if(WITH_DISTRIBUTE)
fleet
fleet
heter_server
heter_server
brpc
brpc
fleet_executor
phi
)
phi
)
set
(
DISTRIBUTE_COMPILE_FLAGS
""
)
set
(
DISTRIBUTE_COMPILE_FLAGS
""
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0
)
...
@@ -905,7 +907,8 @@ if(WITH_DISTRIBUTE)
...
@@ -905,7 +907,8 @@ if(WITH_DISTRIBUTE)
graph_to_program_pass
graph_to_program_pass
variable_helper
variable_helper
timer
timer
monitor
)
monitor
fleet_executor
)
endif
()
endif
()
elseif
(
WITH_PSLIB
)
elseif
(
WITH_PSLIB
)
set
(
DISTRIBUTE_COMPILE_FLAGS
""
)
set
(
DISTRIBUTE_COMPILE_FLAGS
""
)
...
@@ -966,6 +969,7 @@ elseif(WITH_PSLIB)
...
@@ -966,6 +969,7 @@ elseif(WITH_PSLIB)
variable_helper
variable_helper
timer
timer
monitor
monitor
fleet_executor
${
BRPC_DEP
}
)
${
BRPC_DEP
}
)
else
()
else
()
cc_library
(
cc_library
(
...
@@ -1013,7 +1017,8 @@ else()
...
@@ -1013,7 +1017,8 @@ else()
graph_to_program_pass
graph_to_program_pass
variable_helper
variable_helper
timer
timer
monitor
)
monitor
fleet_executor
)
endif
()
endif
()
target_link_libraries
(
executor while_op_helper executor_gc_helper
target_link_libraries
(
executor while_op_helper executor_gc_helper
...
...
paddle/fluid/inference/api/CMakeLists.txt
浏览文件 @
9037c1c6
...
@@ -80,20 +80,14 @@ if(WITH_ONNXRUNTIME)
...
@@ -80,20 +80,14 @@ if(WITH_ONNXRUNTIME)
infer_io_utils
infer_io_utils
model_utils
model_utils
onnxruntime
onnxruntime
paddle2onnx
paddle2onnx
)
fleet_executor
)
else
()
else
()
cc_library
(
cc_library
(
analysis_predictor
analysis_predictor
SRCS analysis_predictor.cc resource_manager.cc infer_context.cc
SRCS analysis_predictor.cc resource_manager.cc infer_context.cc
${
mkldnn_quantizer_src
}
${
mkldnn_quantizer_src
}
DEPS
${
inference_deps
}
DEPS
${
inference_deps
}
zero_copy_tensor ir_pass_manager op_compatible_info
zero_copy_tensor
infer_io_utils model_utils
)
ir_pass_manager
op_compatible_info
infer_io_utils
model_utils
fleet_executor
)
endif
()
endif
()
if
(
WITH_ONNXRUNTIME AND WIN32
)
if
(
WITH_ONNXRUNTIME AND WIN32
)
...
...
paddle/fluid/inference/utils/CMakeLists.txt
浏览文件 @
9037c1c6
...
@@ -11,8 +11,7 @@ cc_library(
...
@@ -11,8 +11,7 @@ cc_library(
model_utils
model_utils
SRCS model_utils.cc
SRCS model_utils.cc
DEPS proto_desc enforce
)
DEPS proto_desc enforce
)
cc_test_old
(
infer_io_utils_tester SRCS io_utils_tester.cc DEPS infer_io_utils
cc_test_old
(
infer_io_utils_tester SRCS io_utils_tester.cc DEPS infer_io_utils
)
fleet_executor
)
if
(
WITH_ONNXRUNTIME AND WIN32
)
if
(
WITH_ONNXRUNTIME AND WIN32
)
# Copy onnxruntime for some c++ test in Windows, since the test will
# Copy onnxruntime for some c++ test in Windows, since the test will
...
...
paddle/fluid/operators/tensorrt/CMakeLists.txt
浏览文件 @
9037c1c6
set
(
tensorrt_engine_op_deps tensorrt_engine tensorrt_converter infer_io_utils
op_library
(
tensorrt_engine_op DEPS tensorrt_engine tensorrt_converter
analysis_helper
)
infer_io_utils analysis_helper
)
op_library
(
tensorrt_engine_op DEPS
${
tensorrt_engine_op_deps
}
)
nv_test
(
nv_test
(
test_tensorrt_engine_op
test_tensorrt_engine_op
SRCS tensorrt_engine_op_test.cc
SRCS tensorrt_engine_op_test.cc
DEPS tensorrt_engine_op analysis
fleet_executor
)
DEPS tensorrt_engine_op analysis
)
if
(
WITH_ONNXRUNTIME AND WIN32
)
if
(
WITH_ONNXRUNTIME AND WIN32
)
# Copy onnxruntime for some c++ test in Windows, since the test will
# Copy onnxruntime for some c++ test in Windows, since the test will
...
...
test/cpp/fluid/CMakeLists.txt
浏览文件 @
9037c1c6
...
@@ -109,7 +109,6 @@ cc_test_old(
...
@@ -109,7 +109,6 @@ cc_test_old(
op_debug_string_test.cc
op_debug_string_test.cc
DEPS
DEPS
executor
executor
fleet_executor
recurrent_op_helper
recurrent_op_helper
recurrent_op
recurrent_op
elementwise_add_op
elementwise_add_op
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录