You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/01 01:42:00 UTC

[GitHub] [tvm] cgerum opened a new pull request #7959: [Codegen] Fix assertion errors in llvm backend when using llvm debug build

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:
users@infra.apache.org



[GitHub] [tvm] tqchen commented on pull request #7959: [Codegen] Fix assertion errors in llvm backend when using llvm debug build

Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #7959:
URL: https://github.com/apache/tvm/pull/7959#issuecomment-831315853


   Thank you @cgerum !


-- 
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:
users@infra.apache.org



[GitHub] [tvm] tqchen merged pull request #7959: [Codegen] Fix assertion errors in llvm backend when using llvm debug build

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #7959:
URL: https://github.com/apache/tvm/pull/7959


   


-- 
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:
users@infra.apache.org