Chipmakers race to curb emissions as demand surges