tqchen edited a comment on issue #5124: [uTVM][Runtime] Introduce Virtual 
Memory Allocator to CRT
URL: https://github.com/apache/incubator-tvm/pull/5124#issuecomment-603312590
 
 
   The workspace memory could have a different strategy. The way it works is 
that we create a different arena for workspace, along with a counter.
   
   - When a memory is allocated, we allocate memory from the arena, and add the 
counter
   - When a memory is de-allocated, we decrease the counter
   - When the counter goes to zero, we free all the memory.
   
   This will work because all workspace memory are temporal. It also guarantees 
a constant time allocation

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


With regards,
Apache Git Services

Reply via email to