Recognize Intel Tiger Lake as SkylakeX
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 11 Feb 2021 19:17:11 +0000 (20:17 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 19:17:11 +0000 (20:17 +0100)
driver/others/dynamic.c

index 7845d695129b7f0211d8837b0d2b4cc042a4d8e8..158e1b3daafda4439c8051e5115f18bf2cb0f31f 100644 (file)
@@ -644,6 +644,21 @@ static gotoblas_t *get_coretype(void){
         return NULL;  
       case 9:
       case 8:
+        if (model == 12) { // Tiger 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;
+          }
+        }
        if (model == 14 ) { // Kaby Lake, Coffee Lake
          if(support_avx2())
            return &gotoblas_HASWELL;