{"id":{"repo_id":"texas","oai_identifier":"oai:repositories.lib.utexas.edu:2152/135486"},"canonical_url":"https://search.ndltd.org/etd/texas/oai:repositories.lib.utexas.edu:2152/135486","repository":{"repo_id":"texas","name":"University of Texas","base_url":"https://repositories.lib.utexas.edu/server/oai/request"},"display":{"title":"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":"Modern 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.","abstract_html":"Modern data-intensive workloads, from high-performance computing (HPC) to machine learning (ML), are increasingly bottlenecked by data movement rather than computation. This &quot;memory wall&quot; 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&#x27;s compilation backend, TorchInductor, with novel compiler optimization techniques. These include semantic fusion via algebraic transformations that generalize the &quot;online softmax&quot; 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&#x27;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&#x27;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.","abstract_has_math":false,"creators":["You, Bozhi"],"institution":"The University of Texas at Austin","degree_name":"Doctor of Philosophy","degree_level":null,"degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Pingali, Keshav"],"committee_chairs":[],"committee_members":["Qixing Huang","Christopher Rossbach","Roshan Dathathri","Divya Mahajan"],"year":2025,"date_issued":"2025-12","date_published":"2025-12","updated_at":"2026-11-20T21:53:09Z","subjects":["Task-based runtimes","Code generation","Kernel fusion","Tiling","Transformer","PyTorch","Algebraic transformation","Attention mechanism","Compiler","High-Performance Computing (HPC)","GPU optimization","Data locality","Heterogeneous computing","Triton","Large language models (LLMs)","Machine learning"],"languages":["English"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/135486"],"render_values":[{"text":"https://hdl.handle.net/2152/135486","href":"https://hdl.handle.net/2152/135486","code":true}]}],"person_identifier_entries":[{"key":"person:identifier.orcid","label":"ORCID","values":["0000-0003-4691-5874"],"render_values":[{"text":"0000-0003-4691-5874","href":"https://orcid.org/0000-0003-4691-5874","code":true}]}]},"links":{"outbound_url":"https://doi.org/10.26153/tsw/62806","outbound_label":"DOI","outbound_source":"dc:identifier.uri","record_url":"https://doi.org/10.26153/tsw/62806","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.uri","access_status":"embargoed","embargo_until":"2026-06-01","access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atexas%3Aoai%3Arepositories.lib.utexas.edu%3A2152%2F135486","prefix":"oai_dc"},"source_record":{"url":"https://repositories.lib.utexas.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepositories.lib.utexas.edu%3A2152%2F135486","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Pingali, Keshav"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Qixing Huang","Christopher Rossbach","Roshan Dathathri","Divya Mahajan"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:creator","label":"Author","values":["You, Bozhi"]},{"key":"person:identifier.orcid","label":"ORCID","values":["0000-0003-4691-5874"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-02-13T21:36:48Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-12"]},{"key":"dc:date.embargo","label":"Dc Date Embargo","values":["2026-06-01"]},{"key":"dc:date.issued","label":"Date","values":["2025-12"]},{"key":"dc:date.liftdate","label":"Dc Date Liftdate","values":["2026-06-01"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["December 2025"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2026-02-13T21:36:48Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","text"]},{"key":"thesis:degree_college","label":"Thesis Degree College","values":["Natural Sciences"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["The University of Texas at Austin","University of Texas at Austin"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Task-based runtimes","Code generation","Kernel fusion","Tiling","Transformer","PyTorch","Algebraic transformation","Attention mechanism","Compiler","High-Performance Computing (HPC)","GPU optimization","Data locality","Heterogeneous computing","Triton","Large language models (LLMs)","Machine learning"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["English"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/135486","https://doi.org/10.26153/tsw/62806"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Modern 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."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["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"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Pingali, Keshav"],"dc:contributor.committeemember":["Qixing Huang","Christopher Rossbach","Roshan Dathathri","Divya Mahajan"],"dc:contributor.department":["Computer Science"],"dc:creator":["You, Bozhi"],"dc:date.accessioned":["2026-02-13T21:36:48Z"],"dc:date.created":["2025-12"],"dc:date.embargo":["2026-06-01"],"dc:date.issued":["2025-12"],"dc:date.liftdate":["2026-06-01"],"dc:date.submitted":["December 2025"],"dc:date.updated":["2026-02-13T21:36:48Z"],"dc:description.abstract":["Modern 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."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/2152/135486","https://doi.org/10.26153/tsw/62806"],"dc:language.iso":["English"],"dc:subject":["Task-based runtimes","Code generation","Kernel fusion","Tiling","Transformer","PyTorch","Algebraic transformation","Attention mechanism","Compiler","High-Performance Computing (HPC)","GPU optimization","Data locality","Heterogeneous computing","Triton","Large language models (LLMs)","Machine learning"],"dc:title":["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"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"person:identifier.orcid":["0000-0003-4691-5874"],"thesis:degree_college":["Natural Sciences"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["The University of Texas at Austin","University of Texas at Austin"]},"updated_at":"2026-11-20T21:53:09Z"}