Back to search

Rice University

Dynamic data race detection for OpenMP programs

Abstract

dc:description.abstract

Two concurrent accesses to a shared variable that are unordered by synchronization are said to be a data race if at least one access is a write. Data races cause shared memory parallel programs to behave unpredictably and are typically considered a bug. It is hard to manually identify memory access instructions causing data races in large concurrent programs due to non-deterministic behavior affected by thread schedule. Tools for detecting data races are desired to help application developers debug data races in an efficient way. Dynamic data race detection tools detect data races by monitoring programs as they execute. Building accurate and efficient data race detection tools requires domain knowledge of concurrency control primitives provided by the specific parallel programming model upon which a program is built. OpenMP is the de-facto standard API for node level shared memory parallel programming. The complexity of OpenMP, which includes primitives for managing data environments, SPMD parallelism, work sharing, tasking, mutual exclusion, and ordering, presents a formidable challenge for precise dynamic data race detection. This dissertation describes several techniques that enable accurate dynamic data race detection for OpenMP programs. First, I describe a hybrid data race detection algorithm that allows data race detection to be executed in parallel. Second, I describe an OpenMP task labeling technique that assigns each OpenMP task a label to facilitate OpenMP-aware accurate happens-before analysis. This technique is the foundation for callback functions provided by the OpenMP Tools interface known as OMPT to get notifications about OpenMP synchronization events and create task labels based on a set of label creation rules. Third, I propose techniques for optimizing dynamic data race detection performance via a redundant memory access pruning algorithm, a readers-writer concurrency control protocol for coordinating threads as they maintain access histories for memory locations, and an OpenMP-aware access record management protocol. The second and third contributions combine to form a system called ROMP, which is a dynamic data race detector for OpenMP programs. Experiments with standard data race detection benchmarks shows that ROMP achieves high accuracy for detecting data races in OpenMP programs that contain host-side CPU-centric parallel constructs. Experiments with several OpenMP performance benchmarks show the effectiveness of proposed optimization techniques.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Engineering
Department thesis:degree_department
Computer Science
Grantor
Rice University
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gu, Yizi
Advisor dc:contributor.advisor
  • Mellor-Crummey, John

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Citation
Gu, Yizi. "Dynamic data race detection for OpenMP programs." (2022) Diss., Rice University. https://hdl.handle.net/1911/11388

Chain of custody

source
Harvested from
Rice University
Base URL
repository.rice.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Gu, Yizi. Dynamic data race detection for OpenMP programs. Doctoral thesis, Rice University, 2022. https://hdl.handle.net/1911/113882