Browse Source

Make fallback from P10 to P9 conditional on suitable compiler

tags/v0.3.13^2
Martin Kroeker GitHub 4 years ago
parent
commit
6232237dba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      driver/others/dynamic_power.c

+ 2
- 0
driver/others/dynamic_power.c View File

@@ -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;
}



Loading…
Cancel
Save