-
Notifications
You must be signed in to change notification settings - Fork 54
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
Flush debug print to avoid truncated output #3715
Conversation
!build |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
I can imagine having to add more flushes in the future. You may want to let debug()
subclass ostream&
and overload operator<<
so we can flush all messages to debug()
conditioned by a flag. For example, in glog, LOG(ERROR) always flushes and LOG(INFO) doesn't.
Agreed |
Quite commonly, debug dump like
NVFUSER_DUMP=fusion_ir_math
gets truncated when a device-side error happens. This should at least avoid that with some of fusion dump.