Make fallback from P10 to P9 conditional on suitable compiler
This commit is contained in:
parent
7d81acc762
commit
6232237dba
|
@ -53,8 +53,10 @@ static gotoblas_t *get_coretype(void) {
|
||||||
return &gotoblas_POWER10;
|
return &gotoblas_POWER10;
|
||||||
#endif
|
#endif
|
||||||
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
|
/* 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"))
|
if (__builtin_cpu_is("power10"))
|
||||||
return &gotoblas_POWER9;
|
return &gotoblas_POWER9;
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue