CMakeLists.txt 1.2 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)
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 24 25 26
         place
         enforce
         collective_helper
         device_context
27
         ${DEVICE_EVENT_LIBS}
L
LiYuRio 已提交
28
         dense_tensor)
29
endif()
L
lilong12 已提交
30

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

W
wuhuachaocoding 已提交
39 40
if(WITH_MPI)
  cc_library(
W
Wen Sun 已提交
41 42
    process_group_mpi
    SRCS process_group_mpi.cc mpi_tools.cc common.cc
W
wuhuachaocoding 已提交
43 44 45
    DEPS collective_helper device_context)
endif()

46 47
if(WITH_CUSTOM_DEVICE)
  cc_library(
W
Wen Sun 已提交
48
    process_group_custom
W
Wen Sun 已提交
49
    SRCS process_group_custom.cc custom_ccl_tools.cc common.cc
W
Wen Sun 已提交
50
    DEPS process_group phi_backends place enforce collective_helper
51
         device_context)
52
endif()