Make the *gpu_on_cpu flag depend on device=cpu to work. This make user interface easier.