Memory manager update to drop cache

This commit is contained in:
Peter Boyle
2026-08-28 17:03:41 -04:00
parent f367bc8bce
commit 43c6573ca4
3 changed files with 44 additions and 1 deletions
@@ -967,6 +967,9 @@ int main (int argc, char ** argv)
// coarsening temporaries) goes back to host, so the solve's working set
// starts from a clean device and the cap applies to it alone.
MemoryManager::EvictAll();
// ...and release the allocation caches' held blocks (setup-era deviceVector
// scratch that is "free" to the caller but not to hipMalloc).
MemoryManager::DropCache();
MemoryManager::PrintBytes();
acceleratorMem();
}