Pyramid Ricci flow in higher dimensions