Add support to build for multiple amd gpu targets (#17329)
Summary:
iotamudelta petrex
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17329
Differential Revision: D14161277
Pulled By: bddppq
fbshipit-source-id: f3eb9f52e96a8fcd779c57df0f8c9a2c54754e35