Skip to content

Commit 84df4da

Browse files
committed
update
1 parent 223d840 commit 84df4da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include(${TORCH_XPU_OPS_ROOT}/cmake/ONEMKL.cmake)
4040
include(${TORCH_XPU_OPS_ROOT}/cmake/BuildFlags.cmake)
4141

4242
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)
4444

4545
# -- [ Re-generate the macros file for https://github.com/pytorch/pytorch/pull/147161
4646
macro(update_caffe2_macros_file)
@@ -68,8 +68,6 @@ endif()
6868
if(USE_DISTRIBUTED AND USE_XCCL AND USE_C10D_XCCL)
6969
caffe2_update_option(USE_C10D_XCCL ON)
7070
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)
7371
caffe2_update_option(USE_C10D_XCCL OFF)
7472
endif()
7573

0 commit comments

Comments
 (0)