Example for CUDA & OpenCL Advent Calendar 2014 8th