MasterJH5574 commented on PR #16111:
URL: https://github.com/apache/tvm/pull/16111#issuecomment-1807432519

   @junrushao Yes I agree with you in general that a compiler is not supposed 
to make assumption on the runtime. In terms of the current memory management in 
TVM Unity, the VM makes heavy use of the pool allocator, which, as you pointed 
out, is not clever enough. I would be more than happy to follow up in the 
future to enhance the pool allocator to be more intelligent on allocation 
management, so that we can reach a balance between fragmentation and 
over-allocation. The main purpose of this PR is, still, to manage the memory 
fragmentation. For now, I think it is acceptable to make use of the upper-bound 
strategy, due to the fact that we are making heavy use of the pool allocator. I 
agree with you that this is not optimal, and I am happy to revise the memory 
planning algorithm after we have a cleverer allocator at least.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to