StarPlat: A Versatile DSL for Graph Analytics

ArXiv Pub Date : 2023-05-05 DOI:10.48550/arXiv.2305.03317
N. Behera, Ashwina Kumar, T. EbenezerRajadurai, S. Nitish, Rajesh Pandian Muniasamy, R. Nasre
{"title":"StarPlat: A Versatile DSL for Graph Analytics","authors":"N. Behera, Ashwina Kumar, T. EbenezerRajadurai, S. Nitish, Rajesh Pandian Muniasamy, R. Nasre","doi":"10.48550/arXiv.2305.03317","DOIUrl":null,"url":null,"abstract":"Graphs model several real-world phenomena. With the growth of unstructured and semi-structured data, parallelization of graph algorithms is inevitable. Unfortunately, due to inherent irregularity of computation, memory access, and communication, graph algorithms are traditionally challenging to parallelize. To tame this challenge, several libraries, frameworks, and domain-specific languages (DSLs) have been proposed to reduce the parallel programming burden of the users, who are often domain experts. However, existing frameworks to model graph algorithms typically target a single architecture. In this paper, we present a graph DSL, named StarPlat, that allows programmers to specify graph algorithms in a high-level format, but generates code for three different backends from the same algorithmic specification. In particular, the DSL compiler generates OpenMP for multi-core, MPI for distributed, and CUDA for many-core GPUs. Since these three are completely different parallel programming paradigms, binding them together under the same language is challenging. We share our experience with the language design. Central to our compiler is an intermediate representation which allows a common representation of the high-level program, from which individual backend code generations begin. We demonstrate the expressiveness of StarPlat by specifying four graph algorithms: betweenness centrality computation, page rank computation, single-source shortest paths, and triangle counting. We illustrate the effectiveness of our approach by comparing the performance of the generated codes with that obtained with hand-crafted library codes. We find that the generated code is competitive to library-based codes in many cases. More importantly, we show the feasibility to generate efficient codes for different target architectures from the same algorithmic specification of graph algorithms.","PeriodicalId":93888,"journal":{"name":"ArXiv","volume":"abs/2305.03317 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-05-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ArXiv","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2305.03317","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Graphs model several real-world phenomena. With the growth of unstructured and semi-structured data, parallelization of graph algorithms is inevitable. Unfortunately, due to inherent irregularity of computation, memory access, and communication, graph algorithms are traditionally challenging to parallelize. To tame this challenge, several libraries, frameworks, and domain-specific languages (DSLs) have been proposed to reduce the parallel programming burden of the users, who are often domain experts. However, existing frameworks to model graph algorithms typically target a single architecture. In this paper, we present a graph DSL, named StarPlat, that allows programmers to specify graph algorithms in a high-level format, but generates code for three different backends from the same algorithmic specification. In particular, the DSL compiler generates OpenMP for multi-core, MPI for distributed, and CUDA for many-core GPUs. Since these three are completely different parallel programming paradigms, binding them together under the same language is challenging. We share our experience with the language design. Central to our compiler is an intermediate representation which allows a common representation of the high-level program, from which individual backend code generations begin. We demonstrate the expressiveness of StarPlat by specifying four graph algorithms: betweenness centrality computation, page rank computation, single-source shortest paths, and triangle counting. We illustrate the effectiveness of our approach by comparing the performance of the generated codes with that obtained with hand-crafted library codes. We find that the generated code is competitive to library-based codes in many cases. More importantly, we show the feasibility to generate efficient codes for different target architectures from the same algorithmic specification of graph algorithms.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
StarPlat:图形分析的通用DSL
图形模拟了几种现实世界的现象。随着非结构化和半结构化数据的增长,图算法的并行化是不可避免的。不幸的是,由于计算、内存访问和通信的固有不规则性,图算法在传统上很难并行化。为了应对这一挑战,已经提出了一些库、框架和特定于领域的语言(dsl)来减少用户(通常是领域专家)的并行编程负担。然而,现有的图形算法建模框架通常针对单一架构。在本文中,我们提出了一个图形DSL,名为StarPlat,它允许程序员以高级格式指定图形算法,但从相同的算法规范为三个不同的后端生成代码。特别是DSL编译器为多核生成OpenMP,为分布式生成MPI,为多核gpu生成CUDA。由于这三个是完全不同的并行编程范例,因此在同一种语言下将它们绑定在一起是具有挑战性的。我们分享语言设计的经验。编译器的核心是一个中间表示,它允许高级程序的通用表示,各个后端代码的生成从这里开始。我们通过指定四种图算法来演示StarPlat的表达性:中间性中心性计算、页面排名计算、单源最短路径和三角形计数。我们通过比较生成的代码与手工编写的库代码的性能来说明我们方法的有效性。我们发现,在许多情况下,生成的代码与基于库的代码具有竞争力。更重要的是,我们展示了从相同的图算法规范生成不同目标体系结构的高效代码的可行性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Predictive Strategies for the Control of Complex Motor Skills: Recent Insights into Individual and Joint Actions. A Workflow to Create a High-Quality Protein-Ligand Binding Dataset for Training, Validation, and Prediction Tasks. Generating Novel Brain Morphology by Deforming Learned Templates. Node-reconfiguring multilayer networks of human brain function. Predicting Heteropolymer Phase Separation Using Two-Chain Contact Maps.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1