Skip to content

Commit da8b1bc

Browse files
committed
flagcx integration
1 parent efb2886 commit da8b1bc

File tree

4 files changed

+721
-0
lines changed

4 files changed

+721
-0
lines changed

paddle/common/flags.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,19 @@ PHI_DEFINE_EXPORTED_bool(multi_node_sample_use_gpu_table,
12651265
PHI_DEFINE_EXPORTED_bool(nccl_blocking_wait, false, "nccl blocking wait");
12661266
#endif
12671267

1268+
/**
1269+
* ProcessGroupFlagCX related FLAG
1270+
* Name: flagcx_blocking_wait
1271+
* Since Version:
1272+
* Value Range: bool, default=false
1273+
* Example:
1274+
* Note: nccl blocking wait.
1275+
* blocks host thread until collective operation completes
1276+
*/
1277+
#if defined(PADDLE_WITH_FLAGCX)
1278+
PHI_DEFINE_EXPORTED_bool(flagcx_blocking_wait, false, "flagcx blocking wait");
1279+
#endif
1280+
12681281
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
12691282
PHI_DEFINE_EXPORTED_bool(benchmark_nccl,
12701283
false,

paddle/fluid/distributed/collective/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ if(WITH_NCCL OR WITH_RCCL)
3636

3737
endif()
3838

39+
if(WITH_FLAGCX)
40+
cc_library(
41+
process_group_flagcx
42+
SRCS process_group_flagcx.cc common.cc
43+
DEPS process_group phi)
44+
endif()
45+
3946
if(WITH_XPU_BKCL)
4047
cc_library(
4148
process_group_bkcl

0 commit comments

Comments
 (0)