Skip to content

Commit 974f29c

Browse files
authored
Merge pull request #4494 from ChipKerchner/fixPower10CPUID
Make sure CPU ID works for all POWER_10 conditions
2 parents a96a04e + d408ece commit 974f29c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/others/dynamic_power.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int cpuid(void)
6969
else if (arch == POWER_9) return CPU_POWER9;
7070
#endif
7171
#ifdef POWER_10
72-
else if (arch == POWER_10) return CPU_POWER10;
72+
else if (arch >= POWER_10) return CPU_POWER10;
7373
#endif
7474
return CPU_UNKNOWN;
7575
}
@@ -339,6 +339,9 @@ void gotoblas_dynamic_init(void) {
339339
if (gotoblas && gotoblas -> init) {
340340
strncpy(coren,gotoblas_corename(),20);
341341
sprintf(coremsg, "Core: %s\n",coren);
342+
if (getenv("GET_OPENBLAS_CORETYPE")) {
343+
fprintf(stderr, "%s", coremsg);
344+
}
342345
openblas_warning(2, coremsg);
343346
gotoblas -> init();
344347
} else {

0 commit comments

Comments
 (0)