Add CPUID identification of Intel Ice Lake
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 1 Aug 2019 20:52:35 +0000 (22:52 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2019 20:52:35 +0000 (22:52 +0200)
driver/others/dynamic.c

index 045fc65..f1cd3c6 100644 (file)
@@ -585,9 +585,27 @@ static gotoblas_t *get_coretype(void){
          }
         }
         return NULL;  
+      case 7:
+        if (model == 14) {
+       // Ice Lake
+          if (support_avx512()) 
+           return &gotoblas_SKYLAKEX;
+         if(support_avx2()){
+           openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
+           return &gotoblas_HASWELL;
+          }
+         if(support_avx()) {
+           openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
+           return &gotoblas_SANDYBRIDGE;
+         } else {
+          openblas_warning(FALLBACK_VERBOSE, NEHALEM_FALLBACK);
+          return &gotoblas_NEHALEM;
+          }
+        }
+        return NULL;  
       case 9:
       case 8:
-       if (model == 14 ) { // Kaby Lake
+       if (model == 14 ) { // Kaby Lake, Coffee Lake
          if(support_avx2())
            return &gotoblas_HASWELL;
          if(support_avx()) {