Skip to content

Temp fix for bug in scale-out profiling by adding env variable to disable profiler around allreduce #1697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frost-intel
Copy link
Contributor

Currently, a bug in PTI causes indefinite hang in all_reduce call when attempting to profile code on multiple nodes. If the upstream Kineto enables the toggle option for XPU PTI (pytorch/kineto#1088), then this PR would allow users to profile distributed scale-out code.

This PR uses an env variable to disable profiling around the call to XPU allreduce. An additional change in pytorch would be necessary to enable toggleCollectionDynamic for XPU.

Ideally, a fix can be implemented in a new PTI version 0.12.3 or later before 2.8 deadline. If not, this fix would be required by customers.

@ashokei

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.

1 participant