2020 · 17 citations · 16 references
ComputingComputer EngineeringComputer ScienceCompilersFault-tolerant ComputingParallel ComputingControl-flow AnalysisDesign For TestabilityExperimentation PlatformsFuzz TestingSoftware Fault ToleranceSoftware TestingCode InjectionCode Injection VulnerabilitiesCuda ProgrammingFuzzing OraclesParallel Computing ArchitecturesRandom TestingTest Oracle DesignTest Oracle Problem
CUDA is a parallel computing platform and programming model for the graphics processing unit (GPU) of NVIDIA. With CUDA programming, general purpose computing on GPU (GPGPU) is possible. However, the correctness of CUDA programs relies on the correctness of CUDA compilers, which is difficult to test due to its complexity. In this work, we propose CUDAsmith, a fuzzing framework for CUDA compilers. Our tool can randomly generate deterministic and valid CUDA kernel code with several different strategies. Moreover, it adopts random differential testing and EMI testing techniques to solve the test oracle problems of CUDA compiler testing. In particular, we lift live code injection to CUDA compiler testing to help generate EMI variants. Our fuzzing experiments with both the NVCC compiler and the Clang compiler for CUDA have detected thousands of failures, some of which have been confirmed by compiler developers. Finally, the cost-effectiveness of CUDAsmith is also thoroughly evaluated in our fuzzing experiment.
16
Finding and understanding bugs in C compilers
Xuejun Yang, Yang Chen, Eric Eide et al. · 2011 · 733 citations
Finding and understanding bugs in C compilers
Xuejun Yang, Yang Chen, Eric Eide et al. · ACM SIGPLAN Notices · 2011 · 586 citations
Compiler validation via equivalence modulo inputs
Vu Le, Mehrdad Afshari, Zhendong Su · 2014 · 372 citations
Test-case reduction for C compiler bugs
John Regehr, Yang Chen, Pascal Cuoq et al. · 2012 · 294 citations
Christian Holler, Kim Herzig, Andreas Zeller · 2012 · 232 citations