From 8ed99024bd8c93399ce56d395129cd67bc79f318 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Fri, 15 Mar 2024 13:33:07 -0400 Subject: [PATCH] chore: Remove unused `tox.ini` and `update_compiler.sh` (#1731) --- tox.ini | 3 --- update_compiler.sh | 43 ------------------------------------------- 2 files changed, 46 deletions(-) delete mode 100644 tox.ini delete mode 100755 update_compiler.sh diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 5554a882a..000000000 --- a/tox.ini +++ /dev/null @@ -1,3 +0,0 @@ -[flake8] -max-line-length = 120 -ignore = F401,E402,F403,W503,W504 diff --git a/update_compiler.sh b/update_compiler.sh deleted file mode 100755 index d04fa1517..000000000 --- a/update_compiler.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -set -ex - -# NOTE: This script is called by default on all nightlies. - -# Expected to be run on a Docker image built from -# https://github.com/pytorch/builder/blob/master/conda/Dockerfile (or the -# manywheel equivalent) -# Updates the compiler toolchain from devtoolset 3 to 7 - -# ~~~ -# Why does this file exist? Why not just update the compiler on the base docker -# images? -# -# Answer: Yes we should just update the compiler to devtoolset7 on all the CentOS -# base docker images. There's no reason to keep around devtoolset3 because it's -# not used anymore. -# -# We use devtoolset7 instead of devtoolset3 because devtoolset7 /is/ able to -# build with avx512 instructions, which are needed for fbgemm to get good -# performance. -# -# Note that devtoolset7 still *cannot* build with the new gcc ABI -# (see https://bugzilla.redhat.com/show_bug.cgi?id=1546704). Instead, we use -# Ubuntu 16.04 + gcc 5.4 to build with the new gcc ABI, using an Ubuntu 16.04 -# base docker image. -# For details, see NOTE [ Building libtorch with old vs. new gcc ABI ]. - -# The gcc version should be 4.9.2 right now -echo "Initial gcc version is $(gcc --version)" - -# Uninstall devtoolset-3 -yum remove -y -q devtoolset-3-gcc devtoolset-3-gcc-c++ devtoolset-3-gcc-gfortran devtoolset-3-binutils - -# Install devtoolset-7 -yum install -y -q devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-gcc-gfortran devtoolset-7-binutils - -# Replace PATH and LD_LIBRARY_PATH to updated devtoolset -export PATH=$(echo $PATH | sed 's/devtoolset-3/devtoolset-7/g') -export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/devtoolset-3/devtoolset-7/g') - -# The gcc version should now be 7.3.1 -echo "Final gcc version is $(gcc --version)"