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

[Bug] InternalError: Check failed: (target_has_feature_fn_ptr) is false: Function target.target_has_feature not found #16037

Open
bbbeomjin opened this issue Nov 2, 2023 · 2 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@bbbeomjin
Copy link

Hello, this is my first time using TVM. An error appears when running realy.build. Can you suggest a solution?

The error is as follows

tvm.error.InternalError: Traceback (most recent call last):
28: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::relay::backend::RelayBuildModule::GetFunction(tvm::runtime::String const&, tvm::runtime::ObjectPtr<tvm::runtime:
:Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#3}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
27: tvm::relay::backend::RelayBuildModule::BuildRelay(tvm::IRModule, tvm::runtime::String const&)
26: tvm::relay::backend::RelayBuildModule::OptimizeImpl(tvm::IRModule)
25: tvm::transform::Pass::operator()(tvm::IRModule) const
24: tvm::transform::Pass::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
23: tvm::transform::SequentialNode::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
22: tvm::transform::Pass::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
21: tvm::transform::SequentialNode::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
20: tvm::transform::Pass::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
19: tvm::relay::transform::FunctionPassNode::operator()(tvm::IRModule, tvm::transform::PassContext const&) const
18: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<tvm::relay::Function (tvm::relay::Function, tvm::IRModule, tvm::transform::PassContext)

::AssignTypedLambda<tvm::relay::qnn::transform::QnnCanonicalize()::{lambda(tvm::relay::Function, tvm::IRModule, tvm::transform::PassContext)#1}>(tvm::relay::qnn::transform::QnnCanonicalize()::
{lambda(tvm::relay::Function, tvm::IRModule, tvm::transform::PassContext)#1})::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}> >::Call(tvm::runtime::PackedFuncObj const*,
tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
17: tvm::relay::legalize::Legalize(tvm::RelayExpr const&, std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&)
16: tvm::relay::PostOrderRewrite(tvm::RelayExpr const&, tvm::relay::ExprRewriter*)
15: tvm::relay::MixedModeMutator::VisitExpr(tvm::RelayExpr const&)
14: tvm::relay::MixedModeMutator::VisitLeaf(tvm::RelayExpr const&)
13: tvm::relay::PostOrderRewriter::DispatchVisitExpr(tvm::RelayExpr const&)
12: tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>::VisitExpr(tvm::RelayExpr const&)
11: ZZN3tvm5relay11ExprFunctorIFNS_9RelayExprERKS2_EE10InitVTableEvENUlRKNS
10: tvm::relay::ExprMutator::VisitExpr
(tvm::relay::FunctionNode const*)
9: tvm::relay::MixedModeMutator::VisitExpr(tvm::RelayExpr const&)
8: tvm::relay::MixedModeMutator::VisitLeaf(tvm::RelayExpr const&)
7: tvm::relay::PostOrderRewriter::DispatchVisitExpr(tvm::RelayExpr const&)
6: tvm::relay::ExprRewriter::Rewrite(tvm::RelayExpr const&, tvm::RelayExpr const&)
5: ZZN3tvm5relay12ExprRewriter10InitVTableEvENUlRKNS_7runtime9ObjectRefEPS1
4: tvm::relay::legalize::Legalizer::Rewrite
(tvm::relay::CallNode const*, tvm::RelayExpr const&)
3: _ZN3tvm7runtime13PackedFuncObj
2: tvm::runtime::TypedPackedFunc<tvm::RelayExpr (tvm::Attrs const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::Array<tvm::Type, void> const&)>::AssignTypedLambda<tvm::RelayExpr ()(tvm::Attrs const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::Array<tvm::Type, void> const&)>(tvm::RelayExpr ()(tvm::Attrs const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::Array<tvm::Type, void> const&))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*) const
1: tvm::relay::qnn::RequantizeQnnCanonicalize(tvm::Attrs const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::Array<tvm::Type, void> const&)
0: tvm::relay::qnn::RequantizeConfigNode::get_compute_dtypeabi:cxx11 const
InternalError: Check failed: (target_has_feature_fn_ptr) is false: Function target.target_has_feature not found

This is my environment information

TVM version : tvm0.15.dev()
HW : NVIDIA GeForce RTX 3090 / CUDA 11.7

Does anybody know how to fix it?

@bbbeomjin bbbeomjin added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Nov 2, 2023
@gihwan-kim
Copy link

@Beom-jin I have same issue, did you solved?

@dedoogong
Copy link

@Beom-jin I have the same issue, did you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

3 participants