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.
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.
StorageExclude
Exclude certain storage buffers from being selected when reserving memory.

Enums§

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 aligned to the memory alignment.