cgerum opened a new pull request #7959:
URL: https://github.com/apache/tvm/pull/7959
When running on an llvm-11 build assertion enabled I get the following
errors:
`
python:
/local/gerum/speech_recognition/external/hannah-tvm/external/pulp-llvm/llvm/lib/IR/Globals.cpp:369:
llvm::GlobalVariable::GlobalVariable(llvm::Module&, llvm::Type*, bool,
llvm::GlobalValue::LinkageTypes, llvm::Constant*, const llvm::Twine&,
llvm::GlobalVariable*, llvm::GlobalValue::ThreadLocalMode, unsigned int, bool):
Assertion `!Ty->isFunctionTy() && PointerType::isValidElementType(Ty) &&
"invalid type for global variable"' failed.
`
This patch should fix these errors.
The error should be reproducible with:
`
tgt = "llvm -runtime=c -system-lib"
n = te.var("n")
A = te.placeholder((n,), name="A")
B = te.placeholder((n,), name="B")
C = te.compute(A.shape, lambda i: A[i] + B[i], name="C")
s = te.create_schedule(C.op)
fadd = tvm.build(s, [A, B, C], tgt, name="myadd")
`
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]