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

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

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

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