C++ with OpenCL and Pthread