Shares of technology companies rallied amid hopes for an acceleration of the artificial-intelligence boom.