tkonolige commented on a change in pull request #9873:
URL: https://github.com/apache/tvm/pull/9873#discussion_r787246770
##########
File path: src/target/source/codegen_cuda.cc
##########
@@ -1051,18 +1051,27 @@ void CodeGenCUDA::PrintWmmaScope(const std::string&
scope, DataType t, const Var
}
}
+int stoi(const std::string& str) {
+ try {
+ return std::stoi(str);
+ } catch (std::invalid_argument& e) {
+ LOG(FATAL) << "Cannot convert \"" << str << "\" to int";
+ throw;
Review comment:
Somehow the compiler can't see through LOG(FATAL). I think it is because
it actually throws in the destructor.
--
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]