Oil surged more than 2 percent to a record high near $77 a barrel on Thursday.