ILNumerics - Technical Application Development
SystemObject
ILNumerics.Core.MemoryLayerMemoryPoolHandleT
ILNumerics.Core.MemoryLayerCLSharedMemoryPool
ILNumerics.Core.MemoryLayerDeviceMemoryPool
ILNumerics.Core.MemoryLayerManagedHostPoolT
ILNumerics.Core.MemoryLayerNativeHostPool
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Top
Top
Top
The memory pool base class is a quantizing memory pool for fast (re-)allocating chunks of memory.
[ILNumerics Core Module]
Inheritance Hierarchy
ILNumerics.Core.MemoryLayerMemoryPoolHandleT
ILNumerics.Core.MemoryLayerCLSharedMemoryPool
ILNumerics.Core.MemoryLayerDeviceMemoryPool
ILNumerics.Core.MemoryLayerManagedHostPoolT
ILNumerics.Core.MemoryLayerNativeHostPool
Namespace: ILNumerics.Core.MemoryLayer
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
Type Parameters
- HandleT
The MemoryPoolHandleT type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count |
The number of objects currently stored in this pool.
[ILNumerics Core Module] | |
Device |
The device this pool is associated with.
[ILNumerics Core Module] | |
MaxSize |
A hard limit of a number of bytes the memory pool is able to hold.
[ILNumerics Core Module] | |
MemoryType |
The memory type managed by this pool [readonly].
[ILNumerics Core Module] | |
OOMCount |
Number of OOMs catched (and potentially forwarded) during allocation requests.
[ILNumerics Core Module] | |
ShrinkCount |
Number of shrinking operations performed by the pool so far.
[ILNumerics Core Module] | |
Size |
The sum in bytes of all objects currently hold in the pool.
[ILNumerics Core Module] | |
ThreadID |
The managed thread ID of the thread this pool was created by/for. All (non-readonly) requests to the memory pools must be made from this thread only!
[ILNumerics Core Module] |
Methods
Name | Description | |
---|---|---|
FindBin |
map lengths to bins
[ILNumerics Core Module] | |
Free |
Returns a chunk of memory back to the pool.
[ILNumerics Core Module] | |
GetBinLengths |
Return an enumeration of all lengths for memory chunks in bytes that the memory pool is able to manage (allocate).
[ILNumerics Core Module] | |
New(UInt64, Boolean) |
Request a memory chunk of minimal length length.
[ILNumerics Core Module] | |
New(UIntPtr, Boolean) |
Request a memory chunk of minimal length length.
[ILNumerics Core Module] | |
Shrink |
Shrinks the pool down to shrinkedSize by releasing old objects.
[ILNumerics Core Module] | |
ToString |
Produces statistical information about this memory pool instance for informal messages.
(Overrides ObjectToString.)[ILNumerics Core Module] |
Fields
Name | Description | |
---|---|---|
m_device |
The device this memory pool belongs to.
| |
m_memoryType |
Internal use
| |
m_threadID |
Internal use
| |
s_processPools |
Internal use
|
Remarks
[ILNumerics Core Module]
See Also