oclgrind

OpenCL device simulator and debugger for testing GPU kernels

brewmacoslinux
Try with needOr install directly
Source

About

OpenCL device simulator and debugger

Commands

oclgrind

Examples

Run an OpenCL kernel with simulation$ oclgrind ./my_kernel
Enable interactive debugging mode$ oclgrind -i ./my_kernel
Simulate with specific device parameters$ oclgrind -d CPU ./my_kernel