Skip to content

Commit 043f3d6

Browse files
POWER10: Use POWER9 as a fallback
If the toolchain is too old, or the mma features isn't set on a POWER10 fall back to the POWER9 loops.
1 parent fdf71d6 commit 043f3d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver/others/dynamic_power.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ static gotoblas_t *get_coretype(void) {
5252
if (__builtin_cpu_supports ("arch_3_1") && __builtin_cpu_supports ("mma"))
5353
return &gotoblas_POWER10;
5454
#endif
55+
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
56+
if (__builtin_cpu_is("power10"))
57+
return &gotoblas_POWER9;
5558
return NULL;
5659
}
5760

0 commit comments

Comments
 (0)