Shanghai has invited General Motors to boost investment and research and development in the city, the city government said on Wednesday.