GPU Memory Management and Data Structures
GPU Memory Management and Dynamic Data Structures
Goal: High-Performance Data Processing on GPUs
A central goal is to build data-processing tools that operate efficiently directly on GPUs. This requires more than fast computation: applications must also be able to manage changing amounts of data without repeatedly relying on the host CPU.
Three kinds of workloads motivate this approach:
Scalable, dynamic data structures: Structures such as arrays or other collections may need to grow or shrink as an application runs. The desired capability is to resize them on the GPU itself.
Streaming graph analytics: A graph can change as new data arrives. Processing such a graph on the GPU requires ways to increase or decrease the amount of stored graph data without host intervention.
Sparse tensor contractions: These GPU computations support applications including machine learning and quantum chemistry. Their data-management needs contribute to the demand for adaptable GPU-side storage.
Together, these workloads motivate a dynamic data-structure library for GPUs: a collection of structures that can adapt their size while remaining under GPU control.
GPU-Side Memory Management
Dynamic structures and changing workloads depend on a memory manager that runs on the GPU. If the host must intervene whenever storage is needed or released, memory management can become a bottleneck and limit how independently GPU applications can operate.
The needed memory manager should provide:
GPU-side allocation and deallocation: Memory can be allocated and freed directly on the GPU, without requiring host intervention for each operation.
Very fast operations: Allocation and freeing must be efficient enough to support high-performance data processing.
Variable-size allocations: The manager must handle requests for different amounts of memory, rather than supporting only fixed-size blocks.
A GPU memory manager that supports fast, variable-size allocation and freeing provides a foundation for dynamic data structures and data-driven applications that adapt their storage while running.

Ask anything
We've read this whole study set, so questions about it get the best answers.