Be slightly less clever about gpu_device = -1