You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tlopex (via GitHub)" <gi...@apache.org> on 2026/07/21 01:31:43 UTC

[PR] [TIRx] Improve BufferStore cast warning context [tvm]

tlopex opened a new pull request, #20038:
URL: https://github.com/apache/tvm/pull/20038

   This PR improves the precision-loss warning emitted while building a `BufferStore`.
   
   Before this change, the warning only displayed the LHS and RHS dtypes, making it difficult to identify the failing kernel when many kernels were built together:
   
   ```text
   Warning: Casting in BufferStore may lose precision:
   LHS is `T.int32`, RHS is `T.float32`, indexing lanes: 1
   ```
   
   After this change, the warning also displays the current kernel name and the complete `BufferStore` node:
   
   ```text
   Warning: Casting in BufferStore may lose precision:
   LHS is `T.int32`, RHS is `T.float32`, indexing lanes: 1,
   kernel: `warning_kernel`
   
   BufferStore:
   A = T.Buffer((4,), "int32")
   B = T.Buffer((4,))
   i = T.int32()
   A[i] = T.Cast("int32", B[i] + T.float32(0.5))
   ```


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [TIRx] Improve BufferStore cast warning context [tvm]

Posted by "tlopex (via GitHub)" <gi...@apache.org>.
tlopex commented on PR #20038:
URL: https://github.com/apache/tvm/pull/20038#issuecomment-5029191145

   cc @LeiWang1999 


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [TIRx] Improve BufferStore cast warning context [tvm]

Posted by "spectrometerHBH (via GitHub)" <gi...@apache.org>.
spectrometerHBH merged PR #20038:
URL: https://github.com/apache/tvm/pull/20038


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org