4.7 Article

Simit: A Language for Physical Simulation

期刊

ACM TRANSACTIONS ON GRAPHICS
卷 35, 期 2, 页码 -

出版社

ASSOC COMPUTING MACHINERY
DOI: 10.1145/2866569

关键词

Graph; matrix; tensor; simulation

资金

  1. DOE [DE-SC0005288, DE-SC0008923]
  2. NSF [DMS-1304211, XPS-1533753]
  3. DARPA SIMPLEX program through SPAWAR
  4. Stanford Pervasive Parallelism Lab
  5. DARPA [FA8750-14-2-0009]
  6. U.S. Department of Energy (DOE) [DE-SC0008923, DE-SC0005288] Funding Source: U.S. Department of Energy (DOE)
  7. Direct For Computer & Info Scie & Enginr
  8. Division of Computing and Communication Foundations [1533753] Funding Source: National Science Foundation

向作者/读者索取更多资源

With existing programming tools, writing high-performance simulation code is labor intensive and requires sacrificing readability and portability. The alternative is to prototype simulations in a high-level language like Matlab, thereby sacrificing performance. The Matlab programming model naturally describes the behavior of an entire physical system using the language of linear algebra. However, simulations also manipulate individual geometric elements, which are best represented using linked data structures like meshes. Translating between the linked data structures and linear algebra comes at significant cost, both to the programmer and to the machine. High-performance implementations avoid the cost by rephrasing the computation in terms of linked or index data structures, leaving the code complicated and monolithic, often increasing its size by an order of magnitude. In this article, we present Simit, a new language for physical simulations that lets the programmer view the system both as a linked data structure in the form of a hypergraph and as a set of global vectors, matrices, and tensors depending on what is convenient at any given time. Simit provides a novel assembly construct that makes it conceptually easy and computationally efficient to move between the two abstractions. Using the information provided by the assembly construct, the compiler generates efficient in-place computation on the graph. We demonstrate that Simit is easy to use: a Simit program is typically shorter than a Matlab program; that it is high performance: a Simit program running sequentially on a CPU performs comparably to hand-optimized simulations; and that it is portable: Simit programs can be compiled for GPUs with no change to the program, delivering 4 to 20x speedups over our optimized CPU code.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.7
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据