The semiconductor manufacturer Advanced Micro Devices has recorded a 1.07 billion dollar financial hit linked to custom chip agreements with OpenAI and Meta, highlighting the massive costs companies face in the race to build artificial intelligence infrastructure.