CMakeLists.txt 1.3 KB
Newer Older
1 2 3
cc_library(
  processgroup
  SRCS ProcessGroup.cc
L
LiYuRio 已提交
4
  DEPS dense_tensor)
5 6 7 8
cc_library(
  processgroup_stream
  SRCS ProcessGroupStream.cc
  DEPS dense_tensor)
9 10 11
cc_library(
  eager_reducer
  SRCS reducer.cc
12
  DEPS eager_api processgroup processgroup_stream phi_api string_helper)
13

14 15 16 17 18
if(WITH_DISTRIBUTE)
  cc_library(
    processgroup_gloo
    SRCS ProcessGroupGloo.cc
    DEPS phi_api eager_api gloo_wrapper)
19
endif()
20

S
ShenLiang 已提交
21
if(WITH_NCCL OR WITH_RCCL)
22 23
  cc_library(
    processgroup_nccl
24
    SRCS ProcessGroupNCCL.cc NCCLTools.cc Common.cc check.cc
25 26 27 28 29 30
    DEPS processgroup
         processgroup_stream
         place
         enforce
         collective_helper
         device_context
31
         ${DEVICE_EVENT_LIBS}
L
LiYuRio 已提交
32
         dense_tensor)
33
endif()
L
lilong12 已提交
34

J
james 已提交
35 36 37 38 39 40 41 42
if(WITH_XPU_BKCL)
  cc_library(
    processgroup_bkcl
    SRCS ProcessGroupBKCL.cc BKCLTools.cc Common.cc
    DEPS processgroup place enforce collective_helper device_context
         dense_tensor)
endif()

W
wuhuachaocoding 已提交
43 44 45 46 47 48 49
if(WITH_MPI)
  cc_library(
    processgroup_mpi
    SRCS ProcessGroupMPI.cc MPITools.cc Common.cc
    DEPS collective_helper device_context)
endif()

50 51 52 53
if(WITH_CUSTOM_DEVICE)
  cc_library(
    processgroup_custom
    SRCS ProcessGroupCustom.cc CustomCCLTools.cc Common.cc
54 55
    DEPS processgroup phi_backends place enforce collective_helper
         device_context)
56
endif()