Advanced Micro Devices Inc., the main challenger to Nvidia Corp. in the market for artificial intelligence processors, gave a disappointing forecast for the current period, a sign it’s not making the kind of AI inroads that some investors anticipated.