adstraw commented on code in PR #13066:
URL: https://github.com/apache/tvm/pull/13066#discussion_r997365205
##########
src/runtime/hexagon/hexagon_vtcm_pool.cc:
##########
@@ -69,12 +69,16 @@ void* HexagonVtcmPool::Allocate(size_t nbytes) {
// If this is not aligned on a 2k block, allocate from the end to avoid
fragmentation
if (nbytes & size_t(0x7FF)) {
DLOG(INFO) << "VTCM nbytes requested: " << nbytes << " allocate from the
end";
- auto last_free_entry = free_.rbegin();
+ auto last_free_entry = free_.end();
+ last_free_entry--;
Review Comment:
Never mind, this doesn't work. Resolving. :)
--
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]