Nvidia said Monday it will invest up to $100 billion in OpenAI, building infrastructure for next-generation artificial intelligence.