arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1506.07577cs.GR
收藏

Ebb:用于CPU和GPU物理仿真的DSL

Ebb: A DSL for Physical Simulation on CPUs and GPUs

Gilbert Louis Bernstein, Chinmayee Shah, Crystal Lemire, Zachary DeVito, Matthew Fisher, Philip Levis, Pat Hanrahan

摘要:

为物理仿真设计编程环境是具有挑战性的,因为仿真依赖于不同的算法和几何域。当我们试图在异构并行架构上高效运行时,这些挑战变得更加复杂。我们提出了Ebb,一个特定于域的语言(DSL)的模拟,有效地运行在CPU和GPU上。与以前的DSL不同,Ebb使用三层架构来分离(1)仿真代码,(2)几何域的数据结构定义,以及(3)支持并行架构的运行时。不同的几何域被实现为使用公共的、统一的关系数据模型的库。通过以这种方式构建仿真框架,实现仿真的程序员可以专注于每个仿真的物理和算法,而不必担心它们在并行计算机上的实现。由于几何域库都是使用基于关系的公共运行时实现的,因此可以根据需要添加新的几何域,而无需指定存储管理的细节、映射到不同的并行架构或必须扩展运行时的接口。我们通过将Ebb与几个广泛使用的模拟进行比较来评估Ebb,展示与可用的手写GPU代码相当的性能,并在没有GPU代码的情况下超过现有的CPU性能优化高达9 $\times$。

英文摘要:

Designing programming environments for physical simulation is challenging because simulations rely on diverse algorithms and geometric domains. These challenges are compounded when we try to run efficiently on heterogeneous parallel architectures. We present Ebb, a domain-specific language (DSL) for simulation, that runs efficiently on both CPUs and GPUs. Unlike previous DSLs, Ebb uses a three-layer architecture to separate (1) simulation code, (2) definition of data structures for geometric domains, and (3) runtimes supporting parallel architectures. Different geometric domains are implemented as libraries that use a common, unified, relational data model. By structuring the simulation framework in this way, programmers implementing simulations can focus on the physics and algorithms for each simulation without worrying about their implementation on parallel computers. Because the geometric domain libraries are all implemented using a common runtime based on relations, new geometric domains can be added as needed, without specifying the details of memory management, mapping to different parallel architectures, or having to expand the runtime's interface. We evaluate Ebb by comparing it to several widely used simulations, demonstrating comparable performance to hand-written GPU code where available, and surpassing existing CPU performance optimizations by up to 9$\times$ when no GPU code exists.

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

↑