The University of Texas at Austin
On optimizing data locality for data-intensive parallel workloads: a compile-time framework for machine learning models and a run-time abstraction for task-based systems
Abstract
dc:description.abstractModern data-intensive workloads, from high-performance computing (HPC) to machine learning (ML), are increasingly bottlenecked by data movement rather than computation. This "memory wall" is especially pronounced in heterogeneous systems combining multi-core CPUs and many-core GPU accelerators. Optimizing data locality -- ensuring data is at the right place, at the right time -- is therefore a critical and universal challenge. This dissertation presents a comprehensive, two-part solution that addresses this challenge at two different granularities: a compile-time framework to maximize intra-kernel locality for ML models, and a run-time abstraction to manage inter-task locality for task-based parallel systems. The primary contribution of this dissertation is FlashLight, a compiler-native framework within the PyTorch ecosystem that accelerates emerging variants of the Attention mechanism. Attention is a fundamental component of modern Large Language Models (LLMs). While I/O-efficient implementations like FlashAttention leverage tiling and kernel fusion to optimize standard Attention, these hand-tuned kernels are not trivially adaptable to new, complex Attention variants designed to enhance model quality or efficiency. Existing template-based solutions like FlexAttention offer a partial remedy but lack composability and cannot express more general, data-dependent formulations. FlashLight bridges this gap by automatically generating FlashAttention-style fused kernels from idiomatic PyTorch programs, without relying on static templates. It extends PyTorch's compilation backend, TorchInductor, with novel compiler optimization techniques. These include semantic fusion via algebraic transformations that generalize the "online softmax" algorithm to fuse state-dependent reductions, and structural fusion passes, like dimension demotion, that leverage a unified reduction IR to tile and fuse operator subgraphs. By fusing the entire attention subgraph (e.g., matmul-softmax-matmul) into a single, tiled kernel, FlashLight optimizes intra-kernel data locality by eliminating the materialization of large intermediate tensors to global memory. Our results show that FlashLight generates kernels with performance competitive to FlexAttention on static workloads and superior on dynamic workloads, while supporting a more general class of models, including those beyond FlexAttention's expressiveness. While FlashLight optimizes locality within a kernel at compile-time, a complete solution necessitates the management of locality across devices at run-time. To address this, we also present CrossPy, a heterogeneous array abstraction designed and contributed as the data management layer for the Parla task-based runtime. In Python's ecosystem, developers face the significant challenge of managing heterogeneous data across the distinct memory spaces of CPUs (using e.g. NumPy) and GPUs (using e.g. CuPy). CrossPy solves this by providing a unified, shared index space over physically partitioned arrays. It integrates directly with the Parla scheduler to enable inter-task data locality by facilitating data-aware task placement and automating data movement. Critically, its optimized, cacheable alltoall interface moves communication orchestration out of the Python interpreter, bypassing the Global Interpreter Lock (GIL) bottleneck to provide efficient, parallel inter-device communication. We demonstrate its efficacy with a multi-GPU K-Means implementation that achieves strong and weak-scaling efficiency, proving that CrossPy provides programming convenience without sacrificing performance. Ultimately, this dissertation demonstrates a multi-level strategy for optimizing data locality. By contributing both a compile-time kernel fusion framework for ML models and a run-time data management abstraction for task-parallel systems, this dissertation provides a comprehensive and practical path to unlocking performance for data-intensive parallel workloads on modern heterogeneous hardware.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor
- The University of Texas at Austin
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- You, Bozhi
- Advisor dc:contributor.advisor
-
- Pingali, Keshav
- Committee members dc:contributor.committeemember
-
- Qixing Huang
- Christopher Rossbach
- Roshan Dathathri
- Divya Mahajan
- ORCID person:identifier.orcid
Subjects
dc:subject × 16Rights
- Language dc:language.iso
- English
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/2152/135486