You can build for multiple GPU architectures at once by setting TORCH_CUDA_ARCH_LIST, for example we build with:
export TORCH_CUDA_ARCH_LIST="3.7;6.0;7.0;7.5"

Wikipedia has a good map of adapters to compute versions: https://en.wikipedia.org/wiki/CUDA 19