CMakeLists.txt 1.4 KB
Newer Older
1
cc_library(
W
Wen Sun 已提交
2
  process_group
W
Wen Sun 已提交
3
  SRCS process_group.cc
L
LiYuRio 已提交
4
  DEPS dense_tensor)
5

6 7 8
cc_library(
  eager_reducer
  SRCS reducer.cc
9
  DEPS eager_api process_group phi_api string_helper)
10

11 12
if(WITH_DISTRIBUTE)
  cc_library(
W
Wen Sun 已提交
13 14
    process_group_gloo
    SRCS process_group_gloo.cc
15
    DEPS phi_api eager_api gloo_wrapper tcp_store)
16
endif()
17

S
ShenLiang 已提交
18
if(WITH_NCCL OR WITH_RCCL)
19
  cc_library(
W
Wen Sun 已提交
20
    process_group_nccl
21
    SRCS process_group_nccl.cc nccl_tools.cc common.cc
W
Wen Sun 已提交
22
    DEPS process_group
23
         tcp_store
24 25 26 27
         place
         enforce
         collective_helper
         device_context
28
         ${DEVICE_EVENT_LIBS}
29 30 31
         dense_tensor
         comm_static_check
         nccl_dynamic_check)
32
endif()
L
lilong12 已提交
33

J
james 已提交
34 35
if(WITH_XPU_BKCL)
  cc_library(
W
Wen Sun 已提交
36
    process_group_bkcl
W
Wen Sun 已提交
37
    SRCS process_group_bkcl.cc bkcl_tools.cc common.cc
38 39 40 41 42 43
    DEPS process_group
         tcp_store
         place
         enforce
         collective_helper
         device_context
J
james 已提交
44 45 46
         dense_tensor)
endif()

W
wuhuachaocoding 已提交
47 48
if(WITH_MPI)
  cc_library(
W
Wen Sun 已提交
49 50
    process_group_mpi
    SRCS process_group_mpi.cc mpi_tools.cc common.cc
W
wuhuachaocoding 已提交
51 52 53
    DEPS collective_helper device_context)
endif()

54 55
if(WITH_CUSTOM_DEVICE)
  cc_library(
W
Wen Sun 已提交
56
    process_group_custom
W
Wen Sun 已提交
57
    SRCS process_group_custom.cc custom_ccl_tools.cc common.cc
58 59 60 61 62 63
    DEPS process_group
         tcp_store
         phi_backends
         place
         enforce
         collective_helper
64
         device_context)
65
endif()