Unified Graph Framework: Optimizing Graph Applications across Novel Architectures

High performance graph applications are crucial in a wide set of domains, but their performance depends heavily on input graph structure, algorithm, and target hardware. Programmers must develop a series of optimizations either on the compiler level, implementing different load balancing or edge tra...

Full description

Bibliographic Details
Main Author: Hsu, Claire
Other Authors: Amarasinghe, Saman
Format: Thesis
Published: Massachusetts Institute of Technology 2022
Online Access:https://hdl.handle.net/1721.1/139201
_version_ 1826198683390050304
author Hsu, Claire
author2 Amarasinghe, Saman
author_facet Amarasinghe, Saman
Hsu, Claire
author_sort Hsu, Claire
collection MIT
description High performance graph applications are crucial in a wide set of domains, but their performance depends heavily on input graph structure, algorithm, and target hardware. Programmers must develop a series of optimizations either on the compiler level, implementing different load balancing or edge traversal strategies, or on the architectural level, creating novel domain-specific accelerators optimized for graphs. In recent years, there has been rapid growth on the architectural end, with each novel architecture contributing new potential optimizations. To help compiler development scale with the growth of the architecture domain, we develop the Unified Graph Framework (UGF) to achieve portability for easy integration of novel backend architectures into a high-level hardware-independent compiler. UGF builds on the GraphIt domain-specific language, which divides algorithm specification from scheduling optimizations, and separates hardware-independent from hardwarespecific scheduling parameters and compiler passes. As part of UGF, we introduce GraphIR, a graph-specific, hardware-independent intermediate representation; an extensible scheduling language API that enables hardware-independent optimizations and programmer-defined hardware-specific optimizations; and the GraphVM, the compiler backend implemented for each hardware architecture. Lastly, we evaluate UGF by implementing a GraphVM for Swarm, a recently developed multicore architecture. We integrate several scheduling optimizations built around Swarm’s ability to speculate on fine-grained tasks in future loop iterations. When evaluated on five applications and 10 input graphs, UGF successfully generates highly optimized Swarm code and achieves up to 8x speedup over baseline implementations.
first_indexed 2024-09-23T11:08:31Z
format Thesis
id mit-1721.1/139201
institution Massachusetts Institute of Technology
last_indexed 2024-09-23T11:08:31Z
publishDate 2022
publisher Massachusetts Institute of Technology
record_format dspace
spelling mit-1721.1/1392012022-01-15T03:44:44Z Unified Graph Framework: Optimizing Graph Applications across Novel Architectures Hsu, Claire Amarasinghe, Saman Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science High performance graph applications are crucial in a wide set of domains, but their performance depends heavily on input graph structure, algorithm, and target hardware. Programmers must develop a series of optimizations either on the compiler level, implementing different load balancing or edge traversal strategies, or on the architectural level, creating novel domain-specific accelerators optimized for graphs. In recent years, there has been rapid growth on the architectural end, with each novel architecture contributing new potential optimizations. To help compiler development scale with the growth of the architecture domain, we develop the Unified Graph Framework (UGF) to achieve portability for easy integration of novel backend architectures into a high-level hardware-independent compiler. UGF builds on the GraphIt domain-specific language, which divides algorithm specification from scheduling optimizations, and separates hardware-independent from hardwarespecific scheduling parameters and compiler passes. As part of UGF, we introduce GraphIR, a graph-specific, hardware-independent intermediate representation; an extensible scheduling language API that enables hardware-independent optimizations and programmer-defined hardware-specific optimizations; and the GraphVM, the compiler backend implemented for each hardware architecture. Lastly, we evaluate UGF by implementing a GraphVM for Swarm, a recently developed multicore architecture. We integrate several scheduling optimizations built around Swarm’s ability to speculate on fine-grained tasks in future loop iterations. When evaluated on five applications and 10 input graphs, UGF successfully generates highly optimized Swarm code and achieves up to 8x speedup over baseline implementations. M.Eng. 2022-01-14T14:56:21Z 2022-01-14T14:56:21Z 2021-06 2021-06-17T20:13:20.866Z Thesis https://hdl.handle.net/1721.1/139201 In Copyright - Educational Use Permitted Copyright MIT http://rightsstatements.org/page/InC-EDU/1.0/ application/pdf Massachusetts Institute of Technology
spellingShingle Hsu, Claire
Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title_full Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title_fullStr Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title_full_unstemmed Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title_short Unified Graph Framework: Optimizing Graph Applications across Novel Architectures
title_sort unified graph framework optimizing graph applications across novel architectures
url https://hdl.handle.net/1721.1/139201
work_keys_str_mv AT hsuclaire unifiedgraphframeworkoptimizinggraphapplicationsacrossnovelarchitectures