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 "guan404ming (via GitHub)" <gi...@apache.org> on 2026/07/06 17:28:24 UTC
[PR] [Arith] Fix dom_map var leak in IntervalSet relaxation [tvm]
guan404ming opened a new pull request, #19962:
URL: https://github.com/apache/tvm/pull/19962
## Why
#19927 made `IntervalSetEvaluator::Eval(IntervalSet)` keep the original parametric bound when relaxation loses it to infinity, without checking whether that bound references a var being relaxed out. `CompactBufferAllocation` then leaked a loop var into allocation extents outside its scope, and `MakePackedAPI` crashed with `variable i has been used before definition` when compiling cumsum for CUDA (breaking `test_dispatch_cumsum_gpu`, `test_sample_top_p_top_k_from_sorted_prob`, and `test_renormalize_top_p_top_k_prob` in CI).
## How
- Keep the original bound only if it does not reference any `dom_map_` var; `dom_constraints_` vars stay parametric, preserving the behavior #19927 intended.
- Added `test_relax_does_not_leak_dom_map_vars`, which fails without the fix.
--
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] [Arith] Fix dom_map var leak in IntervalSet relaxation [tvm]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on PR #19962:
URL: https://github.com/apache/tvm/pull/19962#issuecomment-4898783751
Make sense, thanks @tqchen!
--
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] [Arith] Fix dom_map var leak in IntervalSet relaxation [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on PR #19962:
URL: https://github.com/apache/tvm/pull/19962#issuecomment-4896106809
https://github.com/apache/tvm/pull/19963
--
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] [Arith] Fix dom_map var leak in IntervalSet relaxation [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on PR #19962:
URL: https://github.com/apache/tvm/pull/19962#issuecomment-4895953721
i think we are moving towards a directly that over complicates things here i will do a separate followup
--
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] [Arith] Fix dom_map var leak in IntervalSet relaxation [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed pull request #19962: [Arith] Fix dom_map var leak in IntervalSet relaxation
URL: https://github.com/apache/tvm/pull/19962
--
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