supersat commented on code in PR #13072:
URL: https://github.com/apache/tvm/pull/13072#discussion_r1002131131
##########
src/runtime/hexagon/hexagon_common.cc:
##########
@@ -69,22 +70,22 @@ std::vector<std::string> SplitString(const std::string&
str, char delim) {
}
return lines;
}
-void HexagonLog(const std::string& file, int lineno, const std::string&
message) {
- HEXAGON_PRINT(ALWAYS, "INFO: %s:%d:", file.c_str(), lineno);
+void HexagonLog(const std::string& file, int lineno, int level, const
std::string& message) {
std::vector<std::string> err_lines = SplitString(message, '\n');
for (auto& line : err_lines) {
- HEXAGON_PRINT(ALWAYS, "INFO: %s", line.c_str());
+ // TVM log levels roughly map to HAP log levels
+ HAP_debug_runtime(level, file.c_str(), lineno, line.c_str());
Review Comment:
It goes to the Hexagon DIAG framework, which can route messages over USB if
`mini-dm` is attached. The presence of a `.farf` file on Android also causes
these messages to be forwarded to `logcat.`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]