Class | Description |
---|---|
AbstractMemoryMgr |
Abstract memory manager, that implements ulike and dup methods using the underlying allocate methods
|
ArrayCacheMemoryMgr |
ArrayCacheMemoryMgr reuses arrays to reduce the number of memory allocations and deallocations.
Memory allocations and deallocations can be quite expensive, especially on GPUs. Note that when arrays are reused, they are reused for the same datatype only. If caching a released array would result in the the maximum cache size being is exceeded, the oldest arrays will be deallocated first, until the new array can in the cache. |
ArrayCloseMemoryMgr |
A simple memory management strategy that deallocates memory as soon as it is no longer needed.
This should result in a minimal amount of memory, but will have some overhead - notably, the cost of deallocating and reallocating memory all the time. |
CloseValidationMemoryMgr |
A
SessionMemMgr that wraps an existing memory manager, to ensure that:- All arrays that are supposed to be closed, have been closed - Arrays are only passed to the close method exactly one (unless they are requested outputs) - Arrays that are passed to the close method were originally allocated by the session memory manager How to use: 1. |
NoOpMemoryMgr |
A simple "no-op" memory manager that relies on JVM garbage collector for memory management.
|
Copyright © 2020. All rights reserved.