-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Fix suspicious async #139886
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
Fix suspicious async #139886
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/139886
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Yep, the blocking behavior of @fduwjj If it is intended for the |
@kwen2501, |
You are right, I thought |
// best effort dump, not waiting for the dump here | ||
std::future<bool> fut = std::async( | ||
std::launch::async, [this]() { return this->dumpDebuggingInfo(); }); | ||
this->dumpDebuggingInfo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, so your change is equivalent? but we didn't want to block here, so we probably actually want a different change.. we have to make the async object outlive the function?
not sure if making this dump async is critical or not. but it may have been causing problems that we failed to diagnose because of making bad assumptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.
This call is blocking.
cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o