Efficient Access History for Race Detection

Yifan Xu, Anchengcheng Zhou, Grace Q. Yin, Kunal Agrawal, I. Ting Angelina Lee, Tao B. Schardl

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations

Abstract

While there has been extensive research on race-detection algorithms for task parallel programs, most of this research has focused on optimizing a particular component — namely reachability analysis, which checks whether two instructions are logically in parallel. Little attention has been paid to the other important component, namely the access history, which stores all memory locations previous instructions have accessed. In theory, the access history component adds no asymptotic overhead; however, in practice, it is often the most expensive component of race detection since it is queried and (possibly) updated at each memory access. We optimize this component based on the observation that, typically, strands within parallel programs access contiguous blocks of memory. Therefore, instead of maintaining the access history at the granularity of individual memory locations, we maintain it at the granularity of these (varying size) intervals. To enable this access history, we propose (1) compiler and runtime mechanisms that allow us to efficiently collect these intervals and (2) a tree-based access history data structure that allows us to update and query it at this interval granularity. The resulting tool can race detect fork-join code with amortized constant overhead, assuming the number of intervals is small compared to the total work of the computation. Our evaluations indicate that this technique improves the performance of race detection on several benchmarks.

Original languageEnglish
Title of host publicationSIAM Symposium on Algorithm Engineering and Experiments, ALENEX 2022
PublisherSociety for Industrial and Applied Mathematics Publications
Pages117-130
Number of pages14
ISBN (Electronic)9781713844204
StatePublished - 2022
Event2022 SIAM Symposium on Algorithm Engineering and Experiments, ALENEX 2022 - Alexandria Old Town, United States
Duration: Jan 9 2022Jan 10 2022

Publication series

NameProceedings of the Workshop on Algorithm Engineering and Experiments
Volume2022-January
ISSN (Print)2164-0300

Conference

Conference2022 SIAM Symposium on Algorithm Engineering and Experiments, ALENEX 2022
Country/TerritoryUnited States
CityAlexandria Old Town
Period01/9/2201/10/22

Fingerprint

Dive into the research topics of 'Efficient Access History for Race Detection'. Together they form a unique fingerprint.

Cite this