Skip to content

Commit cbfd3c8

Browse files
authored
Recognize Intel Ice Lake SP as Cooper Lake
1 parent 26e87ac commit cbfd3c8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

driver/others/dynamic.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,22 @@ static gotoblas_t *get_coretype(void){
621621
return &gotoblas_NEHALEM;
622622
}
623623
}
624+
if (model == 10) {
625+
// Ice Lake SP
626+
if(support_avx512_bf16())
627+
return &gotoblas_COOPERLAKE;
628+
if (support_avx512())
629+
return &gotoblas_SKYLAKEX;
630+
if(support_avx2())
631+
return &gotoblas_HASWELL;
632+
if(support_avx()) {
633+
openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
634+
return &gotoblas_SANDYBRIDGE;
635+
} else {
636+
openblas_warning(FALLBACK_VERBOSE, NEHALEM_FALLBACK);
637+
return &gotoblas_NEHALEM;
638+
}
639+
}
624640
return NULL;
625641
case 7:
626642
if (model == 10) // Goldmont Plus

0 commit comments

Comments
 (0)