An extension of Csmith, CLsmith aims to find OpenCL compiler bugs via EMI and RDT.
CLsmith makes use of two existing testing techniques, Random Differential Testing and Equivalence Modulo Inputs (EMI), applying them in a many-core environment, OpenCL. Its primary feature is the generation of random OpenCL kernels, exercising many features of the language. It also brings a novel idea of applying EMI, via dead-code injection.
The CLsmith tool managed to find over 50 bugs in numerous OpenCL implementation from vendors such as Intel, AMD and Nvidia. It is available for download here.
This research has been supported by the EU FP7 CARP project, Correct and Efficient Accelerator Programming, an EPSRC Pathways to Impact Award, and the Imperial College London UROP scheme.
Integrating a large-scale testing campaign in the CK framework
6th International Workshop on Adaptive Self-tuning Computing Systems (ADAPT'16)
Many-Core Compiler Fuzzing
36th Annual ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'15)