首页> 外文期刊>Parallel Processing Letters >GENERATING MESSAGE-PASSING PROGRAMS FROM ABSTRACT SPECIFICATIONS BY PARTIAL EVALUATION
【24h】

GENERATING MESSAGE-PASSING PROGRAMS FROM ABSTRACT SPECIFICATIONS BY PARTIAL EVALUATION

机译:通过部分评估从抽象规范生成消息传递程序

获取原文
获取原文并翻译 | 示例
           

摘要

This paper demonstrates how parallel programs with message-passing can be generated from abstract specifications embedded in the functional language MetaOCaml. The functional style permits to design parallel programs with a high degree of parameterization, so-called skeletons. Programmers who are unexperienced in parallelism can take such skeletons for a simple and safe generation of parallel applications. Since MetaOCaml also has efficient imperative features and an MPI interface, the entire program can be written in one language, without the need to use a language interface restricting the set of data objects which could be exchanged. The semantics of abstract specifications is expressed by an interpreter written in MetaOCaml. A cost model is defined by abstract interpretation of the specification. Partial evaluation of the interpreter with a specification, a feature which MetaOCaml provides, yields a parallel program. The partial evaluation process takes time on each MPI process directly before the execution of the application program, exploiting knowledge of the number of processes, the current process identifier and the communication structure. Our example is the specification of a divide-and-conquer skeleton which is used to compute the multiplication of multi-digit numbers using Karatsuba's algorithm.
机译:本文演示了如何从嵌入在功能语言MetaOCaml中的抽象规范生成带有消息传递的并行程序。功能样式允许设计具有高度参数化的并行程序,即所谓的框架。缺乏并行性的程序员可以采用这种框架来简单,安全地生成并行应用程序。由于MetaOCaml还具有高效的命令性功能和MPI接口,因此整个程序可以用一种语言编写,而无需使用语言接口来限制可以交换的数据对象集。抽象规范的语义由用MetaOCaml编写的解释器表达。成本模型是通过对规范的抽象解释来定义的。通过使用MetaOCaml提供的规范对解释器进行部分评估,可以生成并行程序。部分评估过程会在应用程序执行之前直接在每个MPI过程上花费时间,这要利用对过程数量,当前过程标识符和通信结构的了解。我们的示例是分治框架的规范,该框架用于使用Karatsuba算法计算多位数的乘法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号