Amazon and chipmaker stocks drive U.S. markets higher despite rising oil prices and inflation worries.