If specified, --gpu flag overrides SolverParameter solver_mode.