Skip to content
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

[Runtime] Clean TVM stacktrace in error messages #15161

Merged
merged 1 commit into from Jun 27, 2023

Conversation

junrushao
Copy link
Member

This PR introduces some cleanups on the stacktraces in TVM's error message by removing the meaningless frames, for example, C++ template dispatch with std::enable_if.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jun 27, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@junrushao junrushao marked this pull request as ready for review June 27, 2023 05:04
@@ -367,11 +367,7 @@ class LogFatal {
this->lineno_ = lineno;
}
[[noreturn]] TVM_NO_INLINE dmlc::Error Finalize() {
InternalError error(file_, lineno_, stream_.str());
#if DMLC_LOG_BEFORE_THROW
Copy link
Member

Choose a reason for hiding this comment

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

keep LOG_BEFORE_THROW guard as it is useful for windows

@tqchen
Copy link
Member

tqchen commented Jun 27, 2023

one minor nit

This PR introduces some cleanups on the stacktraces in TVM's error message by removing the meaningless frames, for example, C++ template dispatch with `std::enable_if`.
@junrushao junrushao force-pushed the feature/2023-06-26/clean-stacktrace branch from cbfb8b1 to ff2c059 Compare June 27, 2023 14:29
@vinx13 vinx13 merged commit b9c76f5 into apache:main Jun 27, 2023
17 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.

None yet

4 participants