Commit 84df4da 1 parent 223d840 commit 84df4da Copy full SHA for 84df4da
File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ include(${TORCH_XPU_OPS_ROOT}/cmake/ONEMKL.cmake)
40
40
include (${TORCH_XPU_OPS_ROOT} /cmake/BuildFlags.cmake)
41
41
42
42
option (USE_XCCL "Build with XCCL support" OFF )
43
- option (USE_C10D_XCCL "Build with XCCL support for C10D" ON )
43
+ cmake_dependent_option (USE_C10D_XCCL "USE C10D XCCL" ON "USE_DISTRIBUTED;USE_XCCL" OFF )
44
44
45
45
# -- [ Re-generate the macros file for https://github.com/pytorch/pytorch/pull/147161
46
46
macro (update_caffe2_macros_file)
@@ -68,8 +68,6 @@ endif()
68
68
if (USE_DISTRIBUTED AND USE_XCCL AND USE_C10D_XCCL)
69
69
caffe2_update_option(USE_C10D_XCCL ON )
70
70
else ()
71
- # WA for USE_C10D_XCCL duplicated definition, will remove it after USE_C10D_XCCL and USE_XCCL define in PyTorch
72
- set (USE_C10D_XCCL OFF CACHE BOOL "Build with XCCL support for C10D" FORCE)
73
71
caffe2_update_option(USE_C10D_XCCL OFF )
74
72
endif ()
75
73
You can’t perform that action at this time.
0 commit comments