You can specify the compute capability via TORCH_CUDA_ARCH_LIST=3.0 and try to rebuild it. However, based on the error message, I guess you might be using CUDA>=11.0, which dropped the compute capability 3.0, so you might need to use an older CUDA toolkit.