Skip to content

Conversation

@ckl117
Copy link
Collaborator

@ckl117 ckl117 commented Sep 28, 2025

custom_allreduce support cudagraph recapture

gongshaotian
gongshaotian previously approved these changes Sep 28, 2025
Copy link
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

def clear_graph(self):
""" """
# Clear graphs
custom_ar_clear_ipc_handles()
Copy link
Collaborator

Choose a reason for hiding this comment

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

是不是要在开启custom_all_reduce的情况下才调用这个

Copy link
Collaborator

Choose a reason for hiding this comment

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

是不是要在开启custom_all_reduce的情况下才调用这个

custom_all_reduce 是默认开了

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

是不是要在开启custom_all_reduce的情况下才调用这个

custom_ar_clear_ipc_handles()函数内部会判断有CustomAllreduce对象(_TP_AR)才会clear的。

Copy link
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

@qingqing01 qingqing01 merged commit 81959c7 into PaddlePaddle:develop Sep 29, 2025
22 of 29 checks passed
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.

4 participants