soccercheng opened a new issue, #14976:
URL: https://github.com/apache/tvm/issues/14976
The folling commit ID will cause fatal VTA issues when VTA generate code for
"tir.tvm_thread_context".
commit 6eb077944295b96d70531db9b7048f2e87af1cfc
Date: Fri May 26 15:22:12 2023 -0500
### Expected behavior
The VTA tutorial code: vta/tutorials/matrix_multiply.py
Successful matrix multiply test!
### Actual behavior
[08:45:20]
/home/xxx000/vta/prj/tmp/tvm/src/target/llvm/codegen_llvm.cc:1781:
CreateIntrinsic: T.tvm_thread_context(T.tir.vta.command_handle())
Traceback (most recent call last):
File "/home/xxx000/vta/prj/tmp/tvm/vta/tutorials/matrix_multiply.py", line
389, in <module>
my_gemm = vta.build(
File "/home/xxx000/vta/prj/tmp/tvm/vta/python/vta/build_module.py", line
124, in build
return tvm.build(*args, **kwargs)
File "/home/xxx000/vta/prj/tmp/tvm/python/tvm/driver/build_module.py",
line 281, in build
rt_mod_host = _driver_ffi.tir_to_runtime(annotated_mods, target_host)
File
"/home/xxx000/vta/prj/tmp/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line
238, in __call__
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
84: TVMFuncCall
....
....
5: tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::SeqStmtNode const*)
4: tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::SeqStmtNode const*)
3: tvm::codegen::CodeGenLLVM::VisitExpr_(tvm::tir::CallNode const*)
2: tvm::codegen::CodeGenCPU::CreateCallExtern(tvm::Type,
tvm::runtime::String, tvm::runtime::Array<tvm::PrimExpr, void> const&, bool)
1: tvm::codegen::CodeGenLLVM::VisitExpr_(tvm::tir::CallNode const*)
0: tvm::codegen::CodeGenLLVM::CreateIntrinsic(tvm::tir::CallNode const*)
File "/home/xxx000/vta/prj/tmp/tvm/src/target/llvm/codegen_llvm.cc", line
1462
VMError: unknown intrinsic Op(tir.tvm_thread_context)
### Environment
OS : Ubuntu 22.04 with 5.19.0-42-generic
Python : Python 3.10.6
TVM : "0.13.dev0"
### Steps to reproduce
TVM_LOG_DEBUG=DEFAULT=2 python3 vta/tutorials/matrix_multiply.py
### Triage
commit 6eb077944295b96d70531db9b7048f2e87af1cfc
Date: Fri May 26 15:22:12 2023 -0500
* needs-triage
--
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]