Recognize Intel Ice Lake SP as Cooper Lake
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 14 May 2021 18:44:06 +0000 (20:44 +0200)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 18:44:06 +0000 (20:44 +0200)
driver/others/dynamic.c

index 158e1b3..46ad06a 100644 (file)
@@ -621,6 +621,22 @@ static gotoblas_t *get_coretype(void){
            return &gotoblas_NEHALEM;
          }
         }
+       if (model == 10) {
+          // Ice Lake SP
+          if(support_avx512_bf16())
+             return &gotoblas_COOPERLAKE;
+          if (support_avx512()) 
+           return &gotoblas_SKYLAKEX;
+         if(support_avx2())
+           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 7:
        if (model == 10) // Goldmont Plus