Cookiee235 opened a new issue, #18425:
URL: https://github.com/apache/tvm/issues/18425
### Actual behavior
```
Traceback (most recent call last):
File "test", line 37, in <module>
ref_output = compile_mod(sch.mod, np_inputs, op_outputs, opt_level=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share_container/LLMFuzz/TirFuzz/bugs/10-24_20-21/topi.log2_1.py",
line 10, in compile_mod
ref_mod = tvm.build(mod, target='llvm')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/software/tvm-latest/python/tvm/driver/build_module.py", line 59, in
build
return tvm.tir.build(mod, target, pipeline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/software/tvm-latest/python/tvm/tir/build.py", line 239, in build
return tir_to_runtime(host_mod, device_mod_dict, target_host)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/software/tvm-latest/python/tvm/tir/build.py", line 149, in
tir_to_runtime
mhost = codegen_build(mhost_all, target_host)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/software/tvm-latest/python/tvm/tir/build.py", line 131, in
codegen_build
return bf(mod, target)
^^^^^^^^^^^^^^^
File "python/tvm_ffi/cython/function.pxi", line 758, in
core.Function.__call__
File "<unknown>", line 0, in
tvm::codegen::LLVMModuleNode::Init(tvm::IRModule const&, tvm::Target const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::AddFunction(tvm::GlobalVar const&, tvm::tir::PrimFunc
const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::AddFunctionInternal(tvm::GlobalVar const&,
tvm::tir::PrimFunc const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
[Previous line repeated 1 more time]
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::SeqStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::SeqStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::AssertStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::SeqStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenCPU::CreateComputeScope(tvm::tir::AttrStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::CreateSerialFor(llvm::Value*, llvm::Value*,
llvm::Value*, tvm::tir::Var const&, tvm::tir::Stmt const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::CreateSerialFor(llvm::Value*, llvm::Value*,
llvm::Value*, tvm::tir::Var const&, tvm::tir::Stmt const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::CreateSerialFor(llvm::Value*, llvm::Value*,
llvm::Value*, tvm::tir::Var const&, tvm::tir::Stmt const&)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::LetStmtNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitStmt_(tvm::tir::BufferStoreNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::VisitExpr_(tvm::tir::CallNode const*)
File "<unknown>", line 0, in
tvm::codegen::CodeGenLLVM::CreateIntrinsic(tvm::tir::CallNode const*)
File "<unknown>", line 0, in tvm::runtime::detail::LogFatal::~LogFatal()
[clone .constprop.0]
File "<unknown>", line 0, in
tvm::runtime::detail::LogFatal::Entry::Finalize()
tvm.error.InternalError: Check failed: (f) is false: Cannot find intrinsic
declaration, possible type mismatch: llvm.log2
```
### Environment
tvm: latest
### Steps to reproduce
```
import tvm
from tvm import te, topi, tir
x = te.placeholder((10,), dtype='int32', name='x') # only support float,
int32 will crash
op_output = topi.log2(x)
sch = tir.Schedule(te.create_prim_func([x, op_output]).with_attr('target',
tvm.target.Target('llvm')))
tvm.build(sch.mod, target='llvm')
```
### Triage
* 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]