Are you accidentally using an older CUDA version?
It looks like nvcc doesn’t support compute capability 7.0, which should be supported starting from CUDA9.0.
Could you check the CUDA version via nvcc --version?
PS: you could try to set the architecture specifically for your GPU via TORCH_CUDA_ARCH_LIST=6.1.