Bounds Checking on GPU
University of Copenhagen
13th International Symposium on High-level Parallel Programming and Applications (HLPP), 2020
@article{henriksen2020bounds,
title={Bounds Checking on GPU},
author={Henriksen, Troels},
year={2020}
}
We present a simple compilation strategy for safety-checking array indexing in high-level languages on GPUs. Our technique does not depend on hardware support for abnormal termination, and is designed to be efficient in the non-failing case. We rely on certain properties of array languages, namely the absence of arbitrary cross-thread communication, to ensure well-defined execution in the presence of failures. We have implemented our technique in the compiler for the functional array language Futhark, and an empirical evaluation on 19 benchmarks shows that the geometric mean overhead of checking array indexes is respectively 4% and 6% on two different GPUs.
August 2, 2020 by hgpu