Example for CUDA & OpenCL Advent Calendar 2014 5th