CMakeLists.txt 1.3 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
W
Wen Sun 已提交
21 22
    SRCS process_group_nccl.cc nccl_tools.cc common.cc check.cc
    DEPS process_group
23
         tcp_store
24 25 26 27
         place
         enforce
         collective_helper
         device_context
28
         ${DEVICE_EVENT_LIBS}
L
LiYuRio 已提交
29
         dense_tensor)
30
endif()
L
lilong12 已提交
31

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

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

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