Advanced Micro Devices was one of the strongest forces lifting the market after forecasting strong growth in upcoming years thanks to AI.