Region-based memory management for GPU programming languages
Eric Holk, Ryan Newton, Jeremy G. Siek et al. · ACM SIGPLAN Notices · 2014
Graphics processing units (GPUs) can effectively accelerate many applications, but their applicability has been largely limited to problems whose solutions can be expressed neatly in terms of linear algebra. Indeed, most GPU programming languages limit the user to simple data structures - typically only multidimensional rectangular arrays of scalar values. Many algorithms are more naturally expressed using higher level language features, such as algebraic data types (ADTs) and first class procedures, yet building these structures in a manner suitable for a GPU remains a challenge. We present a region-based memory management approach that enables rich data structures in Harlan, a language for data parallel computing. Regions enable rich data structures by providing a uniform representation for pointers on both the CPU and GPU and by providing a means of transferring entire data structures between CPU and GPU memory. We demonstrate Harlan's increased expressiveness on several example programs and show that Harlan performs well on more traditional data-parallel problems.
Cited by 7 works. doi:10.1145/2714064.2660244
Authors
References
- Depth-First Search and Linear Graph Algorithms
- Definitional interpreters for higher-order programming languages
- Optimization principles and application performance evaluation of a multithreaded GPU using CUDA
- Region-Based Memory Management
- Lambda lifting: Transforming programs to recursive equations
- Region-based memory management in cyclone
- Trace-based just-in-time type specialization for dynamic languages
- Implementation of a Portable Nested Data-Parallel Language
- Legion: expressing locality and independence with logical regions
- Copperhead