识别基于列表的并行查询的程序转换
Program Transformation to Identify List-Based Parallel Skeletons
摘要:
通过从开发人员那里抽象出并行实现的细节,并行框架被用作构建块来简化并行编程的任务。大多数现有的库都提供了框架的实现,这些框架是在平面数据类型(如列表或数组)上定义的。然而,基于Java的并行编程仍然非常具有挑战性,因为它需要对底层算法进行复杂的分析,并且经常使用低效的中间数据结构。此外,给定程序的算法结构可能与基于列表的骨架的算法结构不匹配。在本文中,我们提出了一种方法来自动转换任何给定的程序,定义在一个列表,更有可能包含基于列表的骨架的实例。这便于使用基于列表的并行骨架的现有实现来并行执行转换后的程序。此外,通过使用现有的转换称为蒸馏结合我们的方法,我们产生的转换程序,包含更少的低效的中间数据结构。
英文摘要:
Algorithmic skeletons are used as building-blocks to ease the task of parallel programming by abstracting the details of parallel implementation from the developer. Most existing libraries provide implementations of skeletons that are defined over flat data types such as lists or arrays. However, skeleton-based parallel programming is still very challenging as it requires intricate analysis of the underlying algorithm and often uses inefficient intermediate data structures. Further, the algorithmic structure of a given program may not match those of list-based skeletons. In this paper, we present a method to automatically transform any given program to one that is defined over a list and is more likely to contain instances of list-based skeletons. This facilitates the parallel execution of a transformed program using existing implementations of list-based parallel skeletons. Further, by using an existing transformation called distillation in conjunction with our method, we produce transformed programs that contain fewer inefficient intermediate data structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。