Require gcc 11 for builtin_cpu_is(power10)
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 20 Jan 2021 14:41:04 +0000 (15:41 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 14:41:04 +0000 (15:41 +0100)
fixes #3074

driver/others/dynamic_power.c

index f9feeb6e886fb3ff2c6b5bba6fb913075dad4124..18f16f835e33886ac90dcc5d9850d4d14d90e690 100644 (file)
@@ -202,7 +202,7 @@ static gotoblas_t *get_coretype(void) {
                return &gotoblas_POWER10;
 #endif
        /* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
-#if (!defined __GNUC__) || ( __GNUC__ >= 6)
+#if (!defined __GNUC__) || ( __GNUC__ >= 11)
        if (__builtin_cpu_is("power10"))
                return &gotoblas_POWER9;
 #endif