RFC 003: Sub-Allocating CUDA Memory Pools and Stream Concurrency
RFC
2024-10-05
Authors: Swasthik Shetty
Abstract: Frequent calls to cudaMalloc cause global device synchronization. This RFC outlines the design of a sub-allocating memory manager pooling 512-byte rounded blocks.
Proposed Pool Design
The CachingAllocator maintains a balanced binary search tree of free memory chunks sorted by byte length. Allocations reuse matching chunks immediately without driver intervention.