Symbolic Analysis of Concurrency Errors in OpenMP Programs
2013, 2013 42nd International Conference on Parallel Processing
https://doi.org/10.1109/ICPP.2013.63Abstract
In this paper we present the OpenMP Analysis Toolkit (OAT), which uses Satisfiability Modulo Theories (SMT) solver based symbolic analysis to detect data races and deadlocks in OpenMP codes. Our approach approximately simulates real executions of an OpenMP program through schedule permutation. We conducted experiments on realworld OpenMP benchmarks and student homework assignments by comparing our OAT tool with two commercial dynamic analysis tools: Intel Thread Checker and Sun Thread Analyzer, and one commercial static analysis tool: Viva64 PVS Studio. The experiments show that our symbolic analysis approach is more accurate than static analysis and more efficient and scalable than dynamic analysis tools with less false positives and negatives.
References (17)
- OpenMP Exercise. https://computing.llnl.gov/tutorials/ openMP/exercise.html.
- PVS-Studio, Static Code Analyzer for C, C++, and C++11. http://www.viva64.com/.
- Yices: An SMT Solver. http://yices.csl.sri.com.
- Intel Thread Checker 3.1 for Linux. http://software.intel.com.
- J. C. King. Symbolic Execution and Program Testing. Commun. ACM, 19(7), Jul.
- S. K. Lahiri, S. Qadeer, and Z. Rakamarić. Static and Precise Detection of Concurrency Errors in Systems Code Using SMT Solvers. In CAV '09.
- L. Lamport. Time, Clocks, and the Ordering of Events in a Distributed System. Commun. ACM, 21(7):558-565, July 1978. ISSN 0001-0782.
- G. Li and G. Gopalakrishnan. Scalable SMT-Based Ver- ification of GPU Kernel Functions. In Proceedings of the Eighteenth ACM SIGSOFT International Symposium on Foundations of Software Engineering, FSE '10, pages 187- 196. ACM, New York, NY, USA, 2010.
- C. Liao, D. J. Quinlan, T. Panas, and B. R. de Supinski. A rose-based openmp 3.0 research compiler supporting multiple runtime libraries. In Proceedings of the 6th international conference on Beyond Loop Level Parallelism in OpenMP: accelerators, Tasking and more, IWOMP'10, pages 15-28.
- H. Ma, Q. Chen, L. Wang, C. Liao, and D. Quinlan. An OpenMP Analyzer For Detecting Concurrency Errors (poster paper). In ICPP 2012: Proceedings of the International Conference on Parallel Processing. IEEE Computer Society, 2012.
- M. d. Michiel, A. Bonenfant, H. Cassé, and P. Sainrat. Static Loop Bound Analysis of C Programs Based on Flow Analysis and Abstract Interpretation. In Proceedings of the 2008 14th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA '08, pages 161-166. IEEE Computer Society, 2008.
- NASA Advanced Supercomputing Division. http://www.nas.nasa.gov/publications/npb.html/.
- OpenMP Source Code Repository. http://sourceforge.net/projects/ompscr/.
- M. Said, C. Wang, Z. Yang, and K. Sakallah. Generating Data Race Witnesses by an SMT-Based Analysis. In Proceed- ings of the Third International Conference on NASA Formal Methods, NFM'11, pages 313-327. Springer-Verlag, Berlin, Heidelberg, 2011.
- S. Savage, M. Burrows, G. Nelson, P. Sobalvarro, and T. Anderson. Eraser: a Dynamic Data Race Detector for Multithreaded Programs. ACM Trans. Comput. Syst., 15(4): 391-411, Nov. 1997. ISSN 0734-2071.
- Oracle Solaris Studio 12.3. http://www.oracle.com/technetwork/server-storage/ solarisstudio/.
- Y. Zhao and S. Malik. Exact Memory Size Estimation for Ar- ray Computations without Loop Unrolling. In Proceedings of the 36th Annual ACM/IEEE Design Automation Conference, DAC '99, pages 811-816. ACM, New York, NY, USA, 1999.