Abstract
Programmability, performance portability, and resource efficiency have emerged as critical challenges in harnessing complex and diverse architectures today to obtain high performance and energy efficiency. While there is abundant research, and thus significant improvements, at different levels of the stack that address these very challenges, in this thesis, we observe that we are fundamentally limited by the interfaces and abstractions between the application and the underlying system/hardware—specifically, the hardware-software interface. The existing narrow interfaces pose two critical challenges. First, significant effort and expertise are required to write high-performance code to harness the full potential of today's diverse and sophisticated hardware. Second, as a hardware/system designer, architecting faster and more efficient systems is challenging as the vast majority of the program's semantic content gets lost in translation with today's hardware-software interface. Moving towards the future, these challenges in programmability and efficiency will be even more intractable as we architect increasingly heterogeneous and sophisticated systems. This thesis makes the case for rich low-overhead cross-layer abstractions as a highly effective means to address the above challenges. These abstractions are designed to communicate higher-level program information from the application to the underlying system and hardware in a highly efficient manner, requiring only minor additions to the existing interfaces. In doing so, they enable a rich space of hardware-software cooperative mechanisms to optimize for performance. We propose 4 different approaches to designing richer abstractions between the application, system software, and hardware architecture in different contexts to significantly improve programmability, portability, and performance in CPUs and GPUs.
Introduction: The Semantic Gap
For decades, the contract between software and hardware has relied on a narrow Instruction Set Architecture (ISA). Software provides a stream of instructions and memory addresses, and hardware executes them as efficiently as possible. While this abstraction provided a stable foundation for years, it has created a "semantic gap" in the era of heterogeneous and complex architectures.
Modern hardware, particularly GPUs and multi-core CPUs, features sophisticated cache hierarchies and non-uniform memory access (NUMA) zones. Because the hardware lacks high-level context—seeing only bits rather than data structures like hash tables or matrices—it must rely on speculative predictions for program behavior. Furthermore, to achieve peak performance, programmers are often forced to manually tune code for specific hardware configurations, leading to a "portability nightmare" where performance degrades significantly when the same code is run on a different chip.
Proposed Frameworks
This research introduces four distinct frameworks designed to bridge the semantic gap by allowing applications to share high-level intent with the underlying system.
1. Expressive Memory (XMem)
Designed for CPUs, XMem introduces the concept of an "Atom"—a region of virtual memory associated with specific semantic properties, such as "read-only" or "high-reuse." By exposing these properties, hardware components can query the XMem system to dynamically adjust caching or prefetching policies, ensuring the hardware's behavior aligns with the application's actual data usage patterns.
2. The Locality Descriptor
For GPUs, this abstraction describes how groups of threads share data. By communicating these sharing patterns, the Locality Descriptor allows the hardware to coordinate thread scheduling and data placement across different memory zones. This removes the burden from the programmer to know the hardware's exact physical layout while maintaining high performance in NUMA-based systems.
3. Zorua: Resource Virtualization
Zorua virtualizes GPU resources like registers and scratchpad memory. It utilizes "phase specifiers" to inform the hardware of resource requirements for upcoming instruction blocks. This decoupling of the programming model from physical hardware limits allows the system to dynamically manage resources, preventing the "performance cliffs" typically encountered when a program exceeds a specific hardware limit.
4. Assist Warps
Assist Warps leverage idle GPU compute cycles to execute "helper threads." These threads perform background system tasks, such as real-time data compression or prefetching. By utilizing these pipeline "bubbles," the framework alleviates system bottlenecks without requiring additional dedicated hardware units.
Evaluation Methodology
The frameworks were evaluated using industry-standard simulation environments and diverse benchmark suites:
- Simulators:
zsimfor CPU-based studies andGPGPU-Simfor GPU-based studies. - Benchmarks: A wide array of workloads including SPEC CPU2006 (general purpose), Polybench (linear algebra), and GPU-specific suites such as Rodinia, Parboil, Mars, and Lonestar. These represent critical patterns in data mining, image processing, and physical simulations.
Key Results and Impact
The implementation of rich cross-layer abstractions demonstrated significant improvements across three key metrics:
- Portability: In CPU cache management, XMem reduced performance loss from 55% (in systems with incorrect hardware assumptions) to just 6%.
- Performance: The Locality Descriptor improved GPU performance by an average of 26.6% for cache-heavy tasks and 53.7% for NUMA-based systems. Additionally, Assist Warps provided a 41.7% average performance boost in bandwidth-limited applications.
- Efficiency: Zorua reduced performance variation across different resource configurations by 50%, enabling non-expert programmers to achieve high efficiency without manual hardware tuning. Furthermore, Assist Warps reduced memory bandwidth requirements by 2.1X through data compression.
Conclusion and Future Directions
The core philosophy of this work is that software should provide semantics (information) while the hardware determines policy (action). This shift enables a more dynamic and adaptable computing ecosystem.
Future research directions include moving toward fine-grained code adaptation, where hardware can modify code implementations on the fly based on real-time system congestion. Additionally, there is significant potential to expand these abstractions to address security and reliability, using rich metadata to prevent memory safety violations at the hardware level.
Summary updated