cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[DEP] Enable assertion in llvm #444

Closed hecmay closed 2 years ago

hecmay commented 2 years ago

One more error when running digirect LLVM simulation

$ python digitrec_main.py 
[00:33:33] src/codegen/llvm/codegen_llvm.cc:1299: Unroll hint get ignore at CodeGenLLVM backend,  consider set unroll_explicit=True
[00:33:33] src/codegen/llvm/codegen_llvm.cc:1299: Unroll hint get ignore at CodeGenLLVM backend,  consider set unroll_explicit=True
python: /actions-runner/_work/heterocl/heterocl/build/pkgs/llvm/src/lib/IR/Instructions.cpp:2565: static llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
Aborted

Will fix tmr

hecmay commented 2 years ago

Last error hopefully

$ python tutorial_07_module.py
python: /heterocl/build/pkgs/llvm/src/lib/IR/Instructions.cpp:299: void llvm::CallInst::init(llvm::FunctionType*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, llvm::ArrayRef<llvm::OperandBundleDefT<llvm::Value*> >, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
Aborted