Support CPU only memcpy

On a machine without GPU and that can't install the CUDA driver, #555 causes the error `Check failed: error == cudaSuccess (35 vs. 0)  CUDA driver version is insufficient for CUDA runtime version`. 

This PR adds an option to fall back in such situation.
Why set to GPU, is it CPU?