Fix OpenCL device check

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