Chip makers are racing to develop artificial-intelligence products to fuel growth as sales of smartphones and personal computers cool.

Nvidia Corp., Intel Corp., Advanced Micro Devices Inc. and a raft of startups are crafting new processors to tap into a broader market for AI hardware and software that is growing 50% a year, according to International Data Corp.

Growth...