Skip to content

Conversation

Chao1Han
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 11, 2025 06:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Disables MPI backend build when XCCL is found and enabled. This prevents conflicts between XCCL and MPI communication backends by ensuring only one is active.

@@ -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.

@Chao1Han Chao1Han closed this Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants