首页> 外文会议>Static analysis. >Efficient May Happen in Parallel Analysis for Async-Finish Parallelism
【24h】

Efficient May Happen in Parallel Analysis for Async-Finish Parallelism

机译:在异步完成并行分析中可能发生高效

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

摘要

For concurrent and parallel languages, the may-happen-in-parallel (MHP) decision problem asks, given two actions in the program, if there is an execution in which they can execute in parallel. Closely related, the MHP computation problem asks, given a program, which pairs of statements may happen in parallel. MHP analysis is the basis for many program analysis problems, such as data race detection and determinism checking, and researchers have devised MHP analyses for a variety of programming models.We present algorithms for static MHP analysis of a storeless abstraction of X10-like languages that have async-finish parallelism and procedures. For a program of size n, our first algorithm solves the MHP decision problem in O(n) time, via a reduction to constrained dynamic pushdown networks (CDPNs). Our second algorithm solves the MHP computation problem in O(n · max(n,k)) time, where k is a statically determined upper bound on the number of pairs that may happen in parallel. The second algorithm first runs a type-based analysis that produces a set of candidate pairs, and then it runs the decision procedure on each of those pairs. For programs without recursion, the type-based analysis is exact and gives an output-sensitive algorithm for the MHP computation problem, while for recursive programs, the type-based analysis may produce spurious pairs that the decision procedure will then remove. Our experiments on a large suite of X10 benchmarks suggest that our approach scales well. Our experiments also show that while A; is O(n~2) in the worst case, k is often O(n) in practice.
机译:对于并发和并行语言,在程序中给定两个动作的情况下,可能发生并行(MHP)决策问题询问它们是否可以并行执行。紧密相关的是,给定程序,MHP计算问题会询问哪些语句对可能并行发生。 MHP分析是许多程序分析问题(例如数据竞速检测和确定性检查)的基础,研究人员已经针对各种编程模型设计了MHP分析。我们提出了用于对类似X10的语言的无存储抽象进行静态MHP分析的算法,具有异步完成的并行性和过程。对于大小为n的程序,我们的第一个算法通过减少约束动态下推网络(CDPN)来解决O(n)时间内的MHP决策问题。我们的第二种算法解决了O(n·max(n,k))时间内的MHP计算问题,其中k是静态确定的可能并行发生的对数的上限。第二种算法首先运行基于类型的分析,该分析产生一组候选对,然后对这些对中的每对运行决策过程。对于没有递归的程序,基于类型的分析是精确的,并且给出了针对MHP计算问题的输出敏感算法,而对于递归程序,基于类型的分析可能会生成伪造对,然后将决策程序删除。我们在大量X10基准测试上的实验表明,我们的方法可以很好地扩展。我们的实验还表明,虽然A;在最坏的情况下为O(n〜2),实际上k通常为O(n)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号