You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "qzylalala (via GitHub)" <gi...@apache.org> on 2023/06/13 09:06:30 UTC

[GitHub] [tvm] qzylalala opened a new issue, #15085: [Bug] error when exec tvm.build

qzylalala opened a new issue, #15085:
URL: https://github.com/apache/tvm/issues/15085

   Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking.  You are always welcomed to post on the forum first :smile_cat:
   
   Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
   
   ### Expected behavior
   
   Get schedule `s`
   
   ### Actual behavior
   
   ```
   16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.Filter
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.BindTarget
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerTVMBuiltin
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerCustomDatatypes
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerIntrin
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerDeviceStorageAccessInfo
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.CombineContextCall
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.Filter
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.BindTarget
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerWarpMemory
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.Simplify
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerCustomDatatypes
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerDeviceStorageAccessInfo
   [16:45:36] /home/XXX/work_space/tvm/src/ir/transform.cc:440: Running pass tir.LowerIntrin
   [1]    30284 segmentation fault (core dumped)  python te.py
   ```
   
   And when I debuged, I found that it got an error at this line
   https://github.com/apache/tvm/blob/6c6ad6c43ad3cb378866683ed322316b173267aa/src/target/llvm/codegen_llvm.cc#L724
   ### Environment
   
   Operating System: Ubuntu1804
   TVM version: Latet
   LLVM: llvm-17
   
   ### Steps to reproduce
   
   ```
   import tvm
   import tvm.testing
   from tvm import te
   import numpy as np
   
   tgt = tvm.target.Target(target="llvm")
   
   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")
   ```
   
   ### Triage
   
   Please refer to the list of label tags [here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the relevant tags and add them below in a bullet format (example below).
   
   * 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: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] error when exec tvm.build [tvm]

Posted by "lss0510 (via GitHub)" <gi...@apache.org>.
lss0510 commented on issue #15085:
URL: https://github.com/apache/tvm/issues/15085#issuecomment-1871692731

   @qzylalala I have a similar problem with you. How did you solve it in the end?


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] quic-sanirudh commented on issue #15085: [Bug] error when exec tvm.build

Posted by "quic-sanirudh (via GitHub)" <gi...@apache.org>.
quic-sanirudh commented on issue #15085:
URL: https://github.com/apache/tvm/issues/15085#issuecomment-1602713996

   I tried reproducing this error and couldn't do so. I don't see anything obviously wrong with the TVM code, so my guess is that you're probably running into some LLVM bug.
   
   Could you perhaps mention the exact LLVM commit in which you're seeing this error. For context, I used the [latest LLVM main commit as of today](https://github.com/llvm/llvm-project/commit/92ee60b66f581fdd919315da5c6ae631e581b021) and I don't see the issue with that commit


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org