提交 d6295b06 编写于 作者: M Megvii Engine Team

feat(dnn): add more msg for user

GitOrigin-RevId: 6c0e61e61001035603316676c32cbcb33fe0d28f
上级 a45e0d18
...@@ -24,7 +24,9 @@ HandleImpl::~HandleImpl() noexcept = default; ...@@ -24,7 +24,9 @@ HandleImpl::~HandleImpl() noexcept = default;
template <typename Opr> template <typename Opr>
std::unique_ptr<Opr> HandleImpl::create_operator() { std::unique_ptr<Opr> HandleImpl::create_operator() {
megdnn_throw("unsupported atlas opr"); megdnn_throw(
"unsupported atlas opr, try export RUNTIME_OVERRIDE_LOG_LEVEL=0 to get "
"more info");
return nullptr; return nullptr;
} }
......
...@@ -236,7 +236,9 @@ MEGDNN_SPECIALIZE_CREATE_OPERATOR(MultiHeadAttnBackward); ...@@ -236,7 +236,9 @@ MEGDNN_SPECIALIZE_CREATE_OPERATOR(MultiHeadAttnBackward);
template <typename Opr> template <typename Opr>
std::unique_ptr<Opr> HandleImpl::create_operator() { std::unique_ptr<Opr> HandleImpl::create_operator() {
megdnn_throw("unsupported cuda opr"); megdnn_throw(
"unsupported cuda opr, try export RUNTIME_OVERRIDE_LOG_LEVEL=0 to get more "
"info");
return nullptr; return nullptr;
} }
......
...@@ -124,7 +124,9 @@ void HandleImpl::ConstScalars::init() { ...@@ -124,7 +124,9 @@ void HandleImpl::ConstScalars::init() {
template <typename Opr> template <typename Opr>
std::unique_ptr<Opr> HandleImpl::create_operator() { std::unique_ptr<Opr> HandleImpl::create_operator() {
megdnn_throw("unsupported rocm opr"); megdnn_throw(
"unsupported rocm opr, try export RUNTIME_OVERRIDE_LOG_LEVEL=0 to get more "
"info");
return nullptr; return nullptr;
} }
......
...@@ -302,6 +302,10 @@ void MegDNNOprHolder::mixin_init_output_comp_node(OperatorNodeBase& self) { ...@@ -302,6 +302,10 @@ void MegDNNOprHolder::mixin_init_output_comp_node(OperatorNodeBase& self) {
void MegDNNOprHolder::mixin_on_output_comp_node_stream_changed(OperatorNodeBase& self) { void MegDNNOprHolder::mixin_on_output_comp_node_stream_changed(OperatorNodeBase& self) {
SingleCNOperatorNode::mixin_on_output_comp_node_stream_changed(self); SingleCNOperatorNode::mixin_on_output_comp_node_stream_changed(self);
//! some backend do not imp opr, show more opr info when before call create megdnn
//! opr failed
mgb_log_debug("try create opr: %s: %s", self.cname(), self.dyn_typeinfo()->name);
create_megdnn_opr(); create_megdnn_opr();
mgb_assert(m_dnn_opr); mgb_assert(m_dnn_opr);
m_dnn_opr->set_error_tracker(&self); m_dnn_opr->set_error_tracker(&self);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册