DOE OSTI · 2202927
Finding inputs that trigger floating-point exceptions in heterogeneous computing via Bayesian optimization
Abstract
Testing code for floating-point exceptions is crucial as exceptions can quickly propagate and produce unreliable numerical answers. The state-of-the-art to test for floating-point exceptions in heterogeneous systems is quite limited and solutions require the application’s source code, which precludes their use in accelerated libraries where the source is not publicly available. We present an approach to find inputs that trigger floating-point exceptions in black-box CPU or GPU functions, i.e., functions where the source code and information about input bounds are unavailable. Our approach is the first to use Bayesian optimization (BO) to identify such inputs and uses novel strategies to overcome the challenges that arise in applying BO to this problem. Here, we implement our approach in the XSCOPE framework and demonstrate it on 58 functions from the CUDA Math Library and 81 functions from the Intel Math Library. XSCOPE is able to identify inputs that trigger exceptions in about 73% of the tested functions.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Laguna, Ignacio, Tran, Anh, Gopalakrishnan, Ganesh. 2023-08-02. Finding inputs that trigger floating-point exceptions in heterogeneous computing via Bayesian optimization. https://doi.org/10.1016/j.parco.2023.103042
Cite the original work for its findings. Save a collection to share your selection of sources.