Nvidia Corp. shares rose to their first record in months on Friday, the latest example of improving momentum at the leader in artificial intelligence chips.