Browse Source

Merge pull request #3075 from martin-frbg/issue3074

Fix DYNAMIC_ARCH compilation on POWER with gcc <11
tags/v0.3.14^2
Martin Kroeker GitHub 5 years ago
parent
commit
d6cf67778c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      driver/others/dynamic_power.c

+ 1
- 1
driver/others/dynamic_power.c View 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) || (__GNUC__ == 10 && __GNUC_MINOR__ >= 2)
if (__builtin_cpu_is("power10"))
return &gotoblas_POWER9;
#endif


Loading…
Cancel
Save