From 8f10a5f7ae09aece812710cf64790c26479f6cc7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 15 Mar 2022 22:20:08 +0100 Subject: [PATCH] Revert AVX512 capability check from PR #1980 --- getarch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/getarch.c b/getarch.c index 00e544bc7..316546f46 100644 --- a/getarch.c +++ b/getarch.c @@ -94,14 +94,18 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #endif -#if defined(__x86_64__) || defined(_M_X64) +/*#if defined(__x86_64__) || defined(_M_X64) #if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX2__)) || (defined(__clang__) && __clang_major__ >= 6)) #else #ifndef NO_AVX512 #define NO_AVX512 #endif #endif +#endif*/ +#ifdef NO_AVX512 +#error("getarch compiled with NO_AVX512") #endif + /* #define FORCE_P2 */ /* #define FORCE_KATMAI */ /* #define FORCE_COPPERMINE */