Skip to content

Commit 56e7dda

Browse files
authored
Fix when USE_C10D_XCCL define in pytorch will not correct update cache (#1441)
This pr for fix use_xccl and use_c10_xccl define in pytorch raise build error pytorch/pytorch#147593 After pytorch pr land, we will remove torch-xpu-ops defination.
1 parent 330b9f9 commit 56e7dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
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)

0 commit comments

Comments
 (0)