Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ if(USE_XCCL)
caffe2_update_option(USE_XCCL OFF)
caffe2_update_option(USE_C10D_XCCL OFF)
update_caffe2_macros_file()
Copy link
Preview

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else() clause is unclear without context. Consider adding a comment to explain that this branch executes when XCCL is found and enabled, to improve code readability.

Suggested change
update_caffe2_macros_file()
update_caffe2_macros_file()
# XCCL is found and enabled; disable MPI options and update macros file.

Copilot uses AI. Check for mistakes.

else()
caffe2_update_option(USE_MPI OFF)
caffe2_update_option(USE_C10D_MPI OFF)
update_caffe2_macros_file()
endif()
endif()

Expand Down
Loading