|
|
|
@ -12,16 +12,14 @@ cc_library(ssa_graph_printer SRCS ssa_graph_printer.cc DEPS ssa_graph_builder)
|
|
|
|
|
cc_library(variable_visitor SRCS variable_visitor.cc DEPS lod_tensor selected_rows)
|
|
|
|
|
|
|
|
|
|
if(WITH_GPU)
|
|
|
|
|
nv_library(nccl_all_reduce_op_handle SRCS all_reduce_op_handle.cc DEPS op_handle_base scope lod_tensor ddim memory
|
|
|
|
|
nv_library(all_reduce_op_handle SRCS all_reduce_op_handle.cc DEPS op_handle_base scope lod_tensor ddim memory
|
|
|
|
|
dynload_cuda variable_visitor)
|
|
|
|
|
set(multi_devices_graph_builder_deps nccl_all_reduce_op_handle)
|
|
|
|
|
nv_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope ddim dynload_cuda)
|
|
|
|
|
nv_library(broadcast_op_handle SRCS broadcast_op_handle.cc DEPS op_handle_base scope ddim memory variable_visitor dynload_cuda)
|
|
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
cc_library(all_reduce_op_handle SRCS all_reduce_op_handle.cc DEPS op_handle_base scope lod_tensor ddim memory
|
|
|
|
|
variable_visitor)
|
|
|
|
|
set(multi_devices_graph_builder_deps all_reduce_op_handle)
|
|
|
|
|
cc_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope ddim)
|
|
|
|
|
cc_library(broadcast_op_handle SRCS broadcast_op_handle.cc DEPS op_handle_base scope ddim memory variable_visitor)
|
|
|
|
|
endif()
|
|
|
|
@ -30,7 +28,7 @@ cc_library(gather_op_handle SRCS gather_op_handle.cc DEPS op_handle_base scope d
|
|
|
|
|
cc_library(fuse_vars_op_handle SRCS fuse_vars_op_handle.cc DEPS op_handle_base scope)
|
|
|
|
|
|
|
|
|
|
cc_library(multi_devices_graph_builder SRCS multi_devices_graph_builder.cc DEPS ssa_graph_builder computation_op_handle
|
|
|
|
|
scale_loss_grad_op_handle rpc_op_handle ${multi_devices_graph_builder_deps} reduce_op_handle broadcast_op_handle)
|
|
|
|
|
scale_loss_grad_op_handle rpc_op_handle all_reduce_op_handle reduce_op_handle broadcast_op_handle)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cc_library(graph_builder_factory SRCS graph_builder_factory.cc DEPS multi_devices_graph_builder ssa_graph_printer)
|
|
|
|
|