arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.01665cs.PL
收藏

图形的自定义代码生成DSL

Custom Code Generation for a Graph DSL

Bikash Gogoi, Unnikrishnan Cheramangalath, Rupesh Nasre

摘要:

图算法是许多应用程序的核心,由于不规则数据的巨大增长,使用它们实现高性能变得至关重要。然而,不规则算法是相当具有挑战性的自动并行化,由于访问模式的影响,输入图,这是不可用的,直到执行。以前的研究已经解决了这个问题,设计特定领域的语言(DSL)的图形算法,限制通用性,但允许各种后端的有效代码生成。然而,这样的DSL过于严格,并且不适应后端或输入图形属性或两者的变化。我们讲述了使现有的DSL(名为Falcon)具有自适应性的经验。这个过程中最大的挑战是不改变指定算法的DSL代码。我们通过自动生成基于顶点与基于边缘的图形处理,同步与异步执行以及CPU与GPU后端的代码来说明我们的建议的有效性。

英文摘要:

Graph algorithms are at the heart of several applications, and achieving high performance with them has become critical due to the tremendous growth of irregular data. However, irregular algorithms are quite challenging to parallelize automatically, due to access patterns influenced by the input graph, which is unavailable until execution. Former research has addressed this issue by designing domain-specific languages (DSLs) for graph algorithms, which restrict generality but allow efficient code-generation for various backends. Such DSLs are, however, too rigid, and do not adapt to changes in backends or to input graph properties or to both. We narrate our experiences in making an existing DSL, named Falcon, adaptive. The biggest challenge in the process is to not change the DSL code for specifying the algorithm. We illustrate the effectiveness of our proposal by auto-generating codes for vertex-based versus edge-based graph processing, synchronous versus asynchronous execution, and CPU versus GPU backends from the same specification.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑