Back to Research Index
RFC•
2024-10-05
•Author: Swasthik Shetty•Status: ACCEPTED

RFC 003: Sub-Allocating CUDA Memory Pools and Stream Concurrency

Eliminating host-device synchronization stalls in darkforest-cuda

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.