From: Martin Kroeker Date: Fri, 11 Dec 2020 22:41:17 +0000 (+0100) Subject: Make fallback from P10 to P9 conditional on suitable compiler X-Git-Tag: upstream/0.3.21~22^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6232237dba7bdd7e185216f7bb0d733ba4c0486e;p=platform%2Fupstream%2Fopenblas.git Make fallback from P10 to P9 conditional on suitable compiler --- diff --git a/driver/others/dynamic_power.c b/driver/others/dynamic_power.c index d60ae68f..a2f56d83 100644 --- a/driver/others/dynamic_power.c +++ b/driver/others/dynamic_power.c @@ -53,8 +53,10 @@ 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 (__builtin_cpu_is("power10")) return &gotoblas_POWER9; +#endif return NULL; }