add debug statements around archaic Katmai code

This commit is contained in:
Martin Kroeker 2024-03-25 20:40:42 +01:00 committed by GitHub
parent 28c0e3e338
commit fb016d640f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -475,7 +475,7 @@ static gotoblas_t *get_coretype(void){
case 0x6:
switch (exmodel) {
case 0:
if (model <= 0x7) return &gotoblas_KATMAI;
if (model <= 0x7) {fprintf(stderr," genuine Katmai??? model=%x\n",model); return &gotoblas_KATMAI;}
if ((model == 0x8) || (model == 0xa) || (model == 0xb)) return &gotoblas_COPPERMINE;
if ((model == 0x9) || (model == 0xd)) return &gotoblas_BANIAS;
if (model == 14) return &gotoblas_BANIAS;
@ -1136,7 +1136,7 @@ void gotoblas_dynamic_init(void) {
}
#ifdef ARCH_X86
if (gotoblas == NULL) gotoblas = &gotoblas_KATMAI;
if (gotoblas == NULL) {fprintf(stderr,"unknown 32bit cpu, assuming Katmai\n");gotoblas = &gotoblas_KATMAI;}
#else
if (gotoblas == NULL) {
if (support_avx512_bf16()) gotoblas = &gotoblas_COOPERLAKE;
@ -1151,8 +1151,9 @@ void gotoblas_dynamic_init(void) {
gotoblas == &gotoblas_COPPERMINE ||
gotoblas == &gotoblas_NORTHWOOD ||
gotoblas == &gotoblas_BANIAS ||
gotoblas == &gotoblas_ATHLON)
gotoblas = &gotoblas_PRESCOTT;
gotoblas == &gotoblas_ATHLON) {
fprintf(stderr,"32bit cpu detected in 64bit system, usiing Prescott\n");
gotoblas = &gotoblas_PRESCOTT;}
}
#endif