Skip to content

Commit 3d36c45

Browse files
authored
Add CPUID identification of Intel Ice Lake
1 parent 648491e commit 3d36c45

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

driver/others/dynamic.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,27 @@ static gotoblas_t *get_coretype(void){
585585
}
586586
}
587587
return NULL;
588+
case 7:
589+
if (model == 14) {
590+
// Ice Lake
591+
if (support_avx512())
592+
return &gotoblas_SKYLAKEX;
593+
if(support_avx2()){
594+
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
595+
return &gotoblas_HASWELL;
596+
}
597+
if(support_avx()) {
598+
openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
599+
return &gotoblas_SANDYBRIDGE;
600+
} else {
601+
openblas_warning(FALLBACK_VERBOSE, NEHALEM_FALLBACK);
602+
return &gotoblas_NEHALEM;
603+
}
604+
}
605+
return NULL;
588606
case 9:
589607
case 8:
590-
if (model == 14 ) { // Kaby Lake
608+
if (model == 14 ) { // Kaby Lake, Coffee Lake
591609
if(support_avx2())
592610
return &gotoblas_HASWELL;
593611
if(support_avx()) {

0 commit comments

Comments
 (0)