ScoRD: A Scoped Race Detector for GPUsAditya K Kamath*, Alvin A George*, and Arkaprava Basu
Published in 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA), 2020
GPUs have emerged as a key computing platform for an ever-growing range of applications. Unlike traditional bulksynchronous GPU programs, many emerging GPU-accelerated applications, such as graph processing, have irregular interaction among the concurrent threads. Consequently, they need complex synchronization. To enable both high performance and adequate synchronization, GPU vendors have introduced scoped synchronization operations that allow a programmer to synchronize within a subset of concurrent threads (a.k.a., scope) that she deems adequate. Scoped-synchronization avoids the performance overhead of synchronization across thousands of GPU threads while ensuring correctness when used appropriately. This flexibility, however, could be a new source of incorrect synchronization where a race can occur due to insufficient scope of the synchronization operation, and not due to missing synchronization as in a typical race.
We introduce ScoRD, a race detector that enables hardware support for efficiently detecting global memory races in a GPU program, including those that arise due to insufficient scopes of synchronization operations. We show that ScoRD can detect a variety of races with a modest performance overhead (on average, 35%). In the process of this study, we also created a benchmark suite consisting of seven applications and three categories of microbenchmarks that use scoped synchronization operations
[Paper ] [ Video ] [Slides ] [Code ](*)Authors contributed equally to this work