Global dynamics of radiatively inefficient accretion flows: advection versus convection