Fix OpenCL device check

Check on line 21 (if device.cpu) not working on my installation (Tesla M2075)