CMakeLists.txt 1.1 KB
Newer Older
1
cc_library(processgroup SRCS ProcessGroup.cc DEPS phi phi_api eager_api)
2
cc_library(eager_reducer SRCS reducer.cc DEPS eager_api processgroup phi phi_api string_helper)
3

4 5 6
if (WITH_DISTRIBUTE)
  cc_library(processgroup_gloo SRCS ProcessGroupGloo.cc DEPS phi phi_api eager_api gloo_wrapper)
endif()
7 8

if(WITH_NCCL)
L
lilong12 已提交
9 10 11 12
  cc_library(processgroup_nccl SRCS ProcessGroupNCCL.cc NCCLTools.cc Common.cc DEPS place cuda_stream enforce collective_helper device_context phi phi_api eager_api)
  if (WITH_DISTRIBUTE)
    cc_library(processgroup_heter SRCS ProcessGroupHeter.cc NCCLTools.cc Common.cc DEPS place cuda_stream enforce collective_helper device_context phi phi_api eager_api)
  endif()
13
endif()
L
lilong12 已提交
14

15
if(WITH_ASCEND_CL)
L
lilong12 已提交
16 17 18 19
  cc_library(processgroup_hccl SRCS ProcessGroupHCCL.cc HCCLTools.cc Common.cc DEPS place npu_stream enforce collective_helper device_context phi phi_api eager_api)
  if (WITH_DISTRIBUTE)
    cc_library(processgroup_heter SRCS ProcessGroupHeter.cc HCCLTools.cc Common.cc DEPS place npu_stream enforce collective_helper device_context phi phi_api eager_api)
  endif()
20
endif()