Add missing trace check for debug output in compile_plan#4665
Add missing trace check for debug output in compile_plan#4665mferencevic wants to merge 1 commit intoROCm:developfrom
trace check for debug output in compile_plan#4665Conversation
|
This is supposed to be always printed. |
pfultz2
left a comment
There was a problem hiding this comment.
The print should not be removed here. This is not a trace message. These messages should not be ignored, the corresponding kernel needs to update its applicability check when you see the message. We keep the message concise to avoid spamming the user with the full error messages, but the visibility is important.
|
We can move these message to use the logger or use |
|
@pfultz2 Thanks for the comments. Although, I want to share that the logs as they are currently don't make any sense for us (a user of MIGraphX). Basically, our logs that are well structured are currently being polluted with the following outputs: As you've mentioned, this could be an important warning/error for you (as MIGraphX developers), but the logs as they are currently formatted don't have any information on which model triggered the issue (and we compile a lot of different models), don't have any information on what printed them (we had to dig through the MIGraphX codebase) and aren't suppressible in any way. In my opinion if they indicate significant compilation errors they should be raised to an error level and should fail the compilation entirely - otherwise, they should be more verbose and somehow suppressible from our logs because we don't want our end users seeing them. I don't think that using I don't have any preference on which option makes most sense, what I've implemented here seemed most logical to me as the |
|
We can change it to use |
|
I don't have any preference there, Feel free and decide what it should be changed to. |
Motivation
After the last few changes on the
developbranch we've started getting the following output in our logs that we couldn't remove with any environment variable modifications:Technical Details
This is the only call to
std::coutin the entire file (src/targets/gpu/compile_ops.cpp) that didn't checktracebefore callingstd::cout. You may want me to tweak the trace level that is checked.Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot Applicable