Module memory_management

Module memory_management 

Source
Expand description

Memory management module.

Structs§

HardwareProperties
Properties of the device related to the accelerator hardware.
MemoryDeviceProperties
Properties of the device related to allocation.
MemoryManagement
Reserves and keeps track of chunks of memory in the storage, and slices upon these chunks.
MemoryManagementOptions
The options for creating a new MemoryManagement instance.
MemoryPoolOptions
Options to create a memory pool.
MemoryUsage
Amount of memory in use by this allocator and statistics on how much memory is reserved and wasted in total.
SliceBinding
Binding of a memory handle.
SliceHandle
Memory Handle.
SliceId
Memory ID.

Enums§

MemoryAllocationMode
The mode of allocation used.
MemoryConfiguration
High level configuration of memory management.
PoolType
The type of memory pool to use.

Traits§

MemoryHandle
The managed tensor buffer handle that points to some memory segment. It should not contain actual data.

Functions§

offset_handles
Take a list of sub-slices of a buffer and create a list of offset handles. Sizes must be in bytes and handles will be aligned to the memory alignment.