Added getDevice() so that the program uses the GPU to run OpenCL kernel.