diff --git a/README.md b/README.md index f6023ceb6d1f..beb788af19ff 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ They require JetPack 4.2 and above, and [@dusty-nv](https://github.com/dusty-nv) #### Prerequisites If you are installing from source, you will need: - Python 3.8 or later (for Linux, Python 3.8.1+ is needed) -- A compiler that fully supports C++17, such as clang or gcc (especially for aarch64, gcc 9.4.0 or newer is required) +- A compiler that fully supports C++17, such as clang or gcc (gcc 9.4.0 or newer is required) We highly recommend installing an [Anaconda](https://www.anaconda.com/download) environment. You will get a high-quality BLAS library (MKL) and you get controlled dependency versions regardless of your Linux distro. diff --git a/c10/util/C++17.h b/c10/util/C++17.h index 0597544ffba9..6007360c6927 100644 --- a/c10/util/C++17.h +++ b/c10/util/C++17.h @@ -12,14 +12,14 @@ #include #if !defined(__clang__) && !defined(_MSC_VER) && defined(__GNUC__) && \ - __GNUC__ < 5 + __GNUC__ < 9 #error \ - "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later." + "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later." #endif -#if defined(__clang__) && __clang_major__ < 4 +#if defined(__clang__) && __clang_major__ < 9 #error \ - "You're trying to build PyTorch with a too old version of Clang. We need Clang 4 or later." + "You're trying to build PyTorch with a too old version of Clang. We need Clang 9 or later." #endif #if (defined(_MSC_VER) && (!defined(_MSVC_LANG) || _MSVC_LANG < 201703L)) || \