Solved by ptrblck in post #2 
              
              
                I don’t think you would need to modify cpp_extension.py, as it should only be used for custom C++/CUDA extensions, not the base build. 
Try to build PyTorch via: 
TORCH_CUDA_ARCH_LIST="3.0" python setup.py install