Skip to main content

Module memory

Module memory 

Source
Expand description

Memory management interfaces for device memory operations

This module provides device memory management abstractions, separate from KV cache management. It handles raw memory allocation, transfers, and memory pool management across different devices.

Structs§

AllocationRequirements
Requirements for memory allocation
BestFitStrategy
Best-fit allocation strategy
DefragmentationStats
Defragmentation statistics
EventHandle
Event handle for stream synchronization
MemoryAccessStats
Memory access pattern statistics
MemoryHandle
Memory handle representing allocated memory
MemoryHandleInfo
Information about a memory handle
MemoryInfo
Memory information for a device
MemoryManagerConfig
Memory manager configuration
MemoryPoolConfig
Memory pool configuration
MemoryTransfer
Memory transfer specification
StreamHandle
Stream handle for asynchronous operations

Enums§

AccessPatternType
Detected access patterns
MemoryAccess
Memory access modes
MemoryPressure
Memory pressure levels
MemoryType
Memory types for different use cases
MemoryUsageHint
Memory usage hints for optimization

Traits§

AdvancedMemoryManager
Advanced memory operations
AllocationStrategy
Memory allocation strategy
DeviceMemoryManager
Device memory manager for raw memory operations
GlobalMemoryMonitor
Global memory monitor for system-wide memory tracking
MemoryManagerFactory
Memory manager factory
StreamManager
Stream manager for asynchronous operations