Race Detection in Two Dimensions

Author:

Dimitrov Dimitar1,Vechev Martin1,Sarkar Vivek2

Affiliation:

1. ETH Zürich

2. Georgia Institute of Technology

Abstract

Dynamic race detection is a program analysis technique for detecting errors caused by undesired interleavings of concurrent tasks. A primary challenge when designing efficient race detection algorithms is to achieve manageable space requirements. State-of-the-art algorithms for unstructured parallelism require Θ ( n ) space per monitored memory location, where n is the total number of tasks. This is a serious drawback when analyzing programs with many tasks. In contrast, algorithms for programs with a series-parallel (SP) structure require only Θ (1) space. Unfortunately, it is currently not well understood if there are classes of parallelism beyond SP that can also benefit from and be analyzed with Θ (1) space complexity. In this work, we show that structures richer than SP graphs, namely, that of two-dimensional (2D) lattices, can also be analyzed in Θ (1) space. Toward that (a) we extend Tarjan’s algorithm for finding lowest common ancestors to handle 2D lattices; (b) from that extension we derive a serial algorithm for race detection that can analyze arbitrary task graphs with a 2D lattice structure; (c) we present a restriction to fork-join that admits precisely the 2D lattices as task graphs (e.g., it can express pipeline parallelism). Our work generalizes prior work on structured race detection and aims to provide a deeper understanding of the interplay between structured parallelism and program analysis efficiency.

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Computer Science Applications,Hardware and Architecture,Modeling and Simulation,Software

Reference22 articles.

1. Kunal Agrawal Joseph Devietti Jeremy T. Fineman I-Ting Angelina Lee Robert Utterback and Changming Xu. 2018. Race detection and reachability in nearly series-parallel DAGs. In SODA’18. Society for Industrial and Applied Mathematics 16. Kunal Agrawal Joseph Devietti Jeremy T. Fineman I-Ting Angelina Lee Robert Utterback and Changming Xu. 2018. Race detection and reachability in nearly series-parallel DAGs. In SODA’18. Society for Industrial and Applied Mathematics 16.

2. Michael A. Bender Jeremy T. Fineman Seth Gilbert and Charles E. Leiserson. 2004. On-the-fly maintenance of series-parallel relationships in fork-join multithreaded programs. In SPAA. ACM 133--144. 10.1145/1007912.1007933 Michael A. Bender Jeremy T. Fineman Seth Gilbert and Charles E. Leiserson. 2004. On-the-fly maintenance of series-parallel relationships in fork-join multithreaded programs. In SPAA. ACM 133--144. 10.1145/1007912.1007933

3. Cilk

4. Vincent Cavé Jisheng Zhao Jun Shirako and Vivek Sarkar. 2011. Habanero- java: The new adventures of old X10. In PPPJ. Vincent Cavé Jisheng Zhao Jun Shirako and Vivek Sarkar. 2011. Habanero- java: The new adventures of old X10. In PPPJ.

5. Philippe Charles Christian Grothoff Vijay Saraswat Christopher Donawa Allan Kielstra Kemal Ebcioglu Christoph von Praun and Vivek Sarkar. 2005. X10: An object-oriented approach to non-uniform cluster computing. In OOPSLA. 10.1145/1094811.1094852 Philippe Charles Christian Grothoff Vijay Saraswat Christopher Donawa Allan Kielstra Kemal Ebcioglu Christoph von Praun and Vivek Sarkar. 2005. X10: An object-oriented approach to non-uniform cluster computing. In OOPSLA. 10.1145/1094811.1094852

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3