Skip to content

Conversation

Chao1Han
Copy link
Contributor

@Chao1Han Chao1Han commented Sep 5, 2025

Refer #2019, support allow_inflight_collective_as_graph unregister

@Copilot Copilot AI review requested due to automatic review settings September 5, 2025 02:43
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

This PR adds a call to unregister work when synchronizing a WorkXCCL instance, implementing proper cleanup for inflight collective operations when they complete.

  • Adds conditional work unregistration in the synchronize() method based on a feature flag
  • Uses unsafe_reclaim_from_nonowning to create an intrusive_ptr for the unregistration call

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zhangxiaoli73
Copy link

@Chao1Han Please merge this PR after CI pass.

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