From FLOPs to Footprints: The Resource Cost of Artificial Intelligence