CMakeLists.txt 1.3 KB
Newer Older
1 2 3
cc_library(
  processgroup
  SRCS ProcessGroup.cc
L
LiYuRio 已提交
4
  DEPS dense_tensor)
5
cc_library(
W
Wen Sun 已提交
6 7
  process_group_stream
  SRCS process_group_stream.cc
8
  DEPS dense_tensor)
9 10 11
cc_library(
  eager_reducer
  SRCS reducer.cc
W
Wen Sun 已提交
12
  DEPS eager_api processgroup process_group_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
  cc_library(
W
Wen Sun 已提交
23 24
    process_group_nccl
    SRCS process_group_nccl.cc nccl_tools.cc Common.cc check.cc
25
    DEPS processgroup
W
Wen Sun 已提交
26
         process_group_stream
27 28 29 30
         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()