GPUVerify
Adam Betts, Nathan Chong, Alastair F. Donaldson et al. · ACM International Conference on Object Oriented Programming Systems Languages and Applications (OOPSLA) · 2012
We present a technique for verifying race- and divergence-freedom of GPU kernels that are written in mainstream kernel programming languages such as OpenCL and CUDA. Our approach is founded on a novel formal operational semantics for GPU programming termed synchronous, delayed visibility (SDV) semantics. The SDV semantics provides a precise definition of barrier divergence in GPU kernels and allows kernel verification to be reduced to analysis of a sequential program, thereby completely avoiding the need to reason about thread interleavings, and allowing existing modular techniques for program verification to be leveraged. We describe an efficient encoding for data race detection and propose a method for automatically inferring loop invariants required for verification. We have implemented these techniques as a practical verification tool, GPUVerify, which can be applied directly to OpenCL and CUDA source code. We evaluate GPUVerify with respect to a set of 163 kernels drawn from public and commercial sources. Our evaluation demonstrates that GPUVerify is capable of efficient, automatic verification of a large number of real-world kernels.
Cited by 143 works. doi:10.1145/2384616.2384625
Authors
References
- Abstract interpretation
- Z3: An Efficient SMT Solver
- KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs
- Construction of abstract state graphs with PVS
- Points-to analysis in almost linear time
- The Daikon system for dynamic detection of likely invariants
- Boogie: A Modular Reusable Verifier for Object-Oriented Programs
- Houdini, an Annotation Assistant for ESC/Java
- Lazy Abstraction with Interpolants
- Accelerating advanced MRI reconstructions on GPUs