MISO:一种表示并行和可靠程序的中间语言
MISO: An intermediate language to express parallel and dependable programs
摘要:
编写快速程序的一种方法是探索潜在的并行性,并利用微处理器中可用的大量内核。这可以通过手动指定哪些代码在哪个线程上执行、使用编译器并行化提示(如OpenMP或Cilk)或使用并行程序设计语言(如X10、Chapel或Aeminium)来实现。无论采用哪种方法,所有这些程序都被编译成一种中间的低级语言,这种语言是顺序的,从而防止后端编译器优化程序并观察其并行特性。本文介绍了MISO,一个中间语言,表示程序的并行性,可以针对前端编译器。该语言定义了“单元格”,由状态和从一个状态到下一个状态的转换函数组成。该语言既能表示串行程序,也能表示并行程序,为后端编译器生成高效的并行程序提供了信息。此外,MISO可用于通过复制状态或通过利用不同的处理器核心来自动地向程序添加冗余,以便为在不可靠的硬件上运行的程序提供容错。
英文摘要:
One way to write fast programs is to explore the potential parallelism and take advantage of the high number of cores available in microprocessors. This can be achieved by manually specifying which code executes on which thread, by using compiler parallelization hints (such as OpenMP or Cilk), or by using a parallel programming language (such as X10, Chapel or Aeminium. Regardless of the approach, all of these programs are compiled to an intermediate lower-level language that is sequential, thus preventing the backend compiler from optimizing the program and observing its parallel nature. This paper presents MISO, an intermediate language that expresses the parallel nature of programs and that can be targeted by front-end compilers. The language defines 'cells', which are composed by a state and a transition function from one state to the next. This language can express both sequential and parallel programs, and provides information for a backend- compiler to generate efficient parallel programs. Moreover, MISO can be used to automatically add redundancy to a program, by replicating the state or by taking advantage of different processor cores, in order to provide fault tolerance for programs running on unreliable hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。